summary refs log tree commit diff stats
path: root/tests/vm/tvarsection.nim
blob: d1c4926a04d375d12244519c055ab231d9ed4c99 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
discard """
  output: '''-1abc'''
"""

var
  a {.compileTime.} = 2
  b = -1
  c {.compileTime.} = 3
  d = "abc"

static:
  assert a == 2
  assert c == 3

echo b, d