diff options
Diffstat (limited to 'tiger-compiler/tests/llvmtranslate/simple_funcall_in_if.tig')
| -rw-r--r-- | tiger-compiler/tests/llvmtranslate/simple_funcall_in_if.tig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tiger-compiler/tests/llvmtranslate/simple_funcall_in_if.tig b/tiger-compiler/tests/llvmtranslate/simple_funcall_in_if.tig new file mode 100644 index 0000000..563b080 --- /dev/null +++ b/tiger-compiler/tests/llvmtranslate/simple_funcall_in_if.tig @@ -0,0 +1,9 @@ +let + function add (a : int, b : int) : int = a + b + function sub (a : int, b : int) : int = a - b +in + if (1) then + add(4, 2) + else + sub(4, 2) +end |
