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

# C99: 5.1.2.2.3
bash ../../test_exit_code.sh 0 <<'EOF'
int main() {
}
EOF

bash ../../test_exit_code.sh 0 <<'EOF'
int main() {
    1 + 2 + 3;
}
EOF

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