diff options
Diffstat (limited to 'test/fib.ll')
-rw-r--r-- | test/fib.ll | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/fib.ll b/test/fib.ll index 933311dc3d..6d81174d6e 100644 --- a/test/fib.ll +++ b/test/fib.ll @@ -1,6 +1,11 @@ -implementation +%FmtString1 = constant [ubyte] c"fib = \00" +%FmtString2 = constant [ubyte] c"\0A\00" declare int "atoi"(sbyte *) +declare void "printInt"(int) +declare void "printString"([ubyte]*) + +implementation ulong "fib"(ulong %n) begin @@ -39,6 +44,9 @@ int "main"() begin %Result = call ulong %fib(ulong 10) %Result = cast ulong %Result to int + call void %printString([ubyte]* %FmtString1) + call void %printInt(int %Result) + call void %printString([ubyte]* %FmtString2) ret int %Result end |