summary refs log tree commit diff stats
path: root/tests/vm/tvmmisc.nim
diff options
context:
space:
mode:
authorYuriy Glukhov <yuriy.glukhov@gmail.com>2016-07-06 14:39:42 +0300
committerYuriy Glukhov <yuriy.glukhov@gmail.com>2016-07-06 14:39:57 +0300
commit09783c3fd0cb98c08aa65d27a3fa630cdc99b673 (patch)
tree8cc567f66bc3899700e14836ff2ad3538fae001b /tests/vm/tvmmisc.nim
parentb681e91745a49944e8429b79a1895f850b7e5762 (diff)
downloadNim-09783c3fd0cb98c08aa65d27a3fa630cdc99b673.tar.gz
Fixed vm codegen for a call with compile-time args. Fixes #4412.
Diffstat (limited to 'tests/vm/tvmmisc.nim')
-rw-r--r--tests/vm/tvmmisc.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/vm/tvmmisc.nim b/tests/vm/tvmmisc.nim
new file mode 100644
index 000000000..e935013c4
--- /dev/null
+++ b/tests/vm/tvmmisc.nim
@@ -0,0 +1,6 @@
+
+# 4412
+proc default[T](t: typedesc[T]): T {.inline.} = discard
+
+static:
+  var x = default(type(0))