summary refs log tree commit diff stats
path: root/tests/pragmas
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-08-27 11:20:30 +0200
committerAraq <rumpf_a@web.de>2018-08-27 11:20:30 +0200
commitc0c8828d9fc58d7cd9bbb76ed8bfd8a35fc3f636 (patch)
treee4876be43c66acc4fa5694b908bd57be766daaf2 /tests/pragmas
parent57a291db333a1d3b6b551ac0aa1799446f660e7e (diff)
downloadNim-c0c8828d9fc58d7cd9bbb76ed8bfd8a35fc3f636.tar.gz
allow .experimental in a .push/pop environment; refs #8676
Diffstat (limited to 'tests/pragmas')
-rw-r--r--tests/pragmas/tpushexperimental.nim13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/pragmas/tpushexperimental.nim b/tests/pragmas/tpushexperimental.nim
new file mode 100644
index 000000000..301419f60
--- /dev/null
+++ b/tests/pragmas/tpushexperimental.nim
@@ -0,0 +1,13 @@
+discard """
+  output: '''0 1
+1 2
+2 3
+0 1
+1 2
+2 3
+3 5'''
+"""
+
+import mpushexperimental
+
+main(12)