summary refs log tree commit diff stats
path: root/tests/misc/tnoforward.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/tnoforward.nim')
-rw-r--r--tests/misc/tnoforward.nim15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/misc/tnoforward.nim b/tests/misc/tnoforward.nim
new file mode 100644
index 000000000..b6a71897a
--- /dev/null
+++ b/tests/misc/tnoforward.nim
@@ -0,0 +1,15 @@
+discard """
+  output: "10"
+"""
+
+# {. noforward: on .}
+{.experimental: "codeReordering".}
+
+proc foo(x: int) =
+  bar x
+
+proc bar(x: int) =
+  echo x
+
+foo(10)
+