aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/010.sh
blob: df6601cb515ae135fdc5878cb7d94d7080f13009 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
set -e

bash ../../test_exit_code.sh 12 <<'EOF'
int main() {
    if (1) {
        return 12;
    } else {
        return 34;
    }
}
EOF

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