diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-03-14 15:37:03 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-03-14 15:37:03 -0400 |
commit | 6bedd04d011eaadf9ec0dc865bb8f84127db7e75 (patch) | |
tree | c7db8a0c6e8755602860b60496d6ef5d616db9c4 /test.toc | |
parent | 110725a5566ca0091e440df49a6e290c268c2b26 (diff) |
fixed problems with foreign varargs
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |