summary refs log tree commit diff stats
path: root/tests/compile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compile')
-rw-r--r--tests/compile/thygienictempl.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/compile/thygienictempl.nim b/tests/compile/thygienictempl.nim
new file mode 100644
index 000000000..98983dc55
--- /dev/null
+++ b/tests/compile/thygienictempl.nim
@@ -0,0 +1,10 @@
+    
+var
+  e = "abc"
+    
+raise newException(EIO, e & "ha!")
+
+template t() = echo(foo)
+
+var foo = 12
+t()