summary refs log tree commit diff stats
path: root/tests/vm/mscriptcompiletime.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/vm/mscriptcompiletime.nim')
-rw-r--r--tests/vm/mscriptcompiletime.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/vm/mscriptcompiletime.nim b/tests/vm/mscriptcompiletime.nim
new file mode 100644
index 000000000..ed7e7c029
--- /dev/null
+++ b/tests/vm/mscriptcompiletime.nim
@@ -0,0 +1,7 @@
+# bug.nim
+var bar* {.compileTime.} = 1
+
+proc dummy = discard
+
+static:
+  inc bar
\ No newline at end of file