summary refs log tree commit diff stats
path: root/tests/arc/t18645.nim
blob: c5fddd4bbc3668ab20abc0fe3415f681f8146f6e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
discard """
  matrix: "--gc:arc; --gc:refc"
  output: '''
1
2
3
'''
"""

proc bitTypeIdUnion() =
  var bitId {.global.} = block:
    0
  inc bitId
  echo bitId

bitTypeIdUnion()
bitTypeIdUnion()
bitTypeIdUnion()