summary refs log tree commit diff stats
path: root/tests/arc/t19231.nim
blob: 40fcf277c40a774bbc61afaa3a0bb862e44c1b02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
discard """
  matrix: "--mm:orc"
  targets: "c cpp"
"""

type
  Game* = ref object

proc free*(game: Game) =
  var mixNumOpened:cint = 0
  for i in 0..<mixNumOpened:
    mixNumOpened -= 1

proc newGame*(): Game =
  new result, free

var
  game*: Game