diff options
Diffstat (limited to 'test/Feature/calltest.ll')
-rw-r--r-- | test/Feature/calltest.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Feature/calltest.ll b/test/Feature/calltest.ll new file mode 100644 index 0000000..f478e50 --- /dev/null +++ b/test/Feature/calltest.ll @@ -0,0 +1,16 @@ +implementation + +; Bytecode gets a constant pool block, that constains: +; type plane: int(int) + +int "main"(int %argc) ; TODO: , sbyte **argv, sbyte **envp) +begin + %retval = call int (int) %test(int %argc) + %two = add int %retval, %retval + ret int %two +end + +int "test"(int %i0) +begin + ret int %i0 +end |