aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test_implicit_return.sh
blob: 423844e0bc2530d2b147dedf0340c93668d91e94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# C99: 5.1.2.2.3
test_exit_code 0 <<'EOF'
int main() {
}
EOF

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

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