summary refs log tree commit diff stats
path: root/tests/manyloc/standalone2/tavr.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manyloc/standalone2/tavr.nim')
-rw-r--r--tests/manyloc/standalone2/tavr.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/manyloc/standalone2/tavr.nim b/tests/manyloc/standalone2/tavr.nim
new file mode 100644
index 000000000..6cbc5c699
--- /dev/null
+++ b/tests/manyloc/standalone2/tavr.nim
@@ -0,0 +1,7 @@
+# bug #16404
+
+proc printf(frmt: cstring) {.varargs, header: "<stdio.h>", cdecl.}
+
+var x = 0
+inc x
+printf("hi %ld\n", x+4777)