summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-12-21 11:09:47 +0100
committerAndreas Rumpf <rumpf_a@web.de>2016-12-21 11:09:47 +0100
commit06a8d37f9a6e194351c58c6668df4a4e69c5f470 (patch)
tree057ca9511083296a56f5f67c076e358d794654ab /tests
parentc166394024a1f985c08bd4143936112f0ec07e25 (diff)
downloadNim-06a8d37f9a6e194351c58c6668df4a4e69c5f470.tar.gz
fixes #5135
Diffstat (limited to 'tests')
-rw-r--r--tests/template/tconfusinglocal.nim4
-rw-r--r--tests/template/tsighash_regression.nim5
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/template/tconfusinglocal.nim b/tests/template/tconfusinglocal.nim
index 9b2cdc954..50bf8f4b2 100644
--- a/tests/template/tconfusinglocal.nim
+++ b/tests/template/tconfusinglocal.nim
@@ -1,4 +1,8 @@
 
+# bug #5135
+proc fail*[E](e: E): void =
+  raise newException(Exception, e)
+
 # bug #4875
 type Bar = object
     mFoo: int
diff --git a/tests/template/tsighash_regression.nim b/tests/template/tsighash_regression.nim
new file mode 100644
index 000000000..bf1f4dfe4
--- /dev/null
+++ b/tests/template/tsighash_regression.nim
@@ -0,0 +1,5 @@
+
+import tconfusinglocal
+
+
+fail "foo"