aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/014.sh
blob: 7e5573a00743c1102e83db714438a2f61d83ead3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
test_exit_code 66 <<'EOF'
int foo() {
    int i;
    int ret;
    i = 0;
    ret = 0;
    for (i = 0; i < 100; i = i + 1) {
        if (i == 12) {
            break;
        }
        ret = ret + i;
    }
    return ret;
}

int main() {
    return foo();
}
EOF