summary refs log tree commit diff stats
path: root/tests/compile/tnoforward.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compile/tnoforward.nim')
-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)
+