summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-03-14 15:37:03 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-03-14 15:37:03 -0400
commit6bedd04d011eaadf9ec0dc865bb8f84127db7e75 (patch)
treec7db8a0c6e8755602860b60496d6ef5d616db9c4 /test.toc
parent110725a5566ca0091e440df49a6e290c268c2b26 (diff)
fixed problems with foreign varargs
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test.toc b/test.toc
index 56ba2e0..ba33c5d 100644
--- a/test.toc
+++ b/test.toc
@@ -2,7 +2,8 @@ printf ::= #foreign("printf","libc.so.6") fn(#C &"const char", #C ..) #C int;
main ::= fn() {
- printf("hey\n\0");
+ x := "hey %ld %ld %ld %ld %ld\n\0";
+ printf(&x[0], 5, 3, 8, 9, 4);
};
main(); \ No newline at end of file