summary refs log tree commit diff stats
path: root/tests/compile
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2013-05-12 16:14:28 +0300
committerZahary Karadjov <zahary@gmail.com>2013-05-12 16:14:28 +0300
commit1d29d24465ddb9aaea18558f221ff67bf82db0c7 (patch)
tree8beb534b4a6f0fecd62b5d92ce9041cdf253798b /tests/compile
parent14b5d5f2622b8ed4625fc7c010be2b627381693d (diff)
downloadNim-1d29d24465ddb9aaea18558f221ff67bf82db0c7.tar.gz
documented the ``noforward`` pragma
Diffstat (limited to 'tests/compile')
-rw-r--r--tests/compile/tnoforward.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/compile/tnoforward.nim b/tests/compile/tnoforward.nim
new file mode 100644
index 000000000..0359ff348
--- /dev/null
+++ b/tests/compile/tnoforward.nim
@@ -0,0 +1,10 @@
+{. noforward: on .}
+
+proc foo(x: int) =
+  bar x
+
+proc bar(x: int) =
+  echo x
+
+foo(10)
+