aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/059.sh
blob: b478b14104ffb040b8e7104c742a71266e551ca8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# TODO: improve error message
# cat <<'EOF' > expected
# main.c:1: expected ';' or '{', but got '}'
# EOF
cat <<'EOF' > expected
main.c:1: expected ';', but got '}'
EOF

test_compile_error <<'EOF'
int main() }
EOF

# TODO: improve error message
# cat <<'EOF' > expected
# main.c:1: expected ';' or '{', but got '}'
# EOF
cat <<'EOF' > expected
main.c:1: expected ';', but got '123'
EOF

test_compile_error <<'EOF'
int main() 123
EOF