summaryrefslogtreecommitdiff
path: root/tiger-compiler/tests/llvmtranslate/simple_funcall_in_if.tig
blob: 563b08039729ed430f728b0224f3040a3a7a5f2e (plain)
1
2
3
4
5
6
7
8
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