summary refs log tree commit diff stats
path: root/tests/whenstmt/t12517.nim
blob: 8be0171e1b37d94d6fa99704e49f9cf185822c50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Test based on issue #12517

discard """
  nimout: '''
nimvm
both
'''
  output: '''
both
'''
"""

proc test() =
  when nimvm:
    echo "nimvm"
  echo "both"

static:
  test()
test()