diff options
Diffstat (limited to 'tests/whenstmt/t12517.nim')
-rw-r--r-- | tests/whenstmt/t12517.nim | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/whenstmt/t12517.nim b/tests/whenstmt/t12517.nim new file mode 100644 index 000000000..8be0171e1 --- /dev/null +++ b/tests/whenstmt/t12517.nim @@ -0,0 +1,21 @@ +# Test based on issue #12517 + +discard """ + nimout: ''' +nimvm +both +''' + output: ''' +both +''' +""" + +proc test() = + when nimvm: + echo "nimvm" + echo "both" + +static: + test() +test() + |