aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test_if_else.sh
blob: cad1716e065eaf2d44f5d98df27835a439c9cb43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
test_exit_code 12 <<'EOF'
int main() {
    if (1) {
        return 12;
    } else {
        return 34;
    }
}
EOF

test_exit_code 34 <<'EOF'
int main() {
    if (1 + 1 != 2) {
        return 12;
    } else {
        return 34;
    }
}
EOF