aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/059.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/059.sh')
-rw-r--r--tests/059.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/059.sh b/tests/059.sh
index a7b92d0..b478b14 100644
--- a/tests/059.sh
+++ b/tests/059.sh
@@ -1,13 +1,21 @@
+# TODO: improve error message
+# cat <<'EOF' > expected
+# main.c:1: expected ';' or '{', but got '}'
+# EOF
cat <<'EOF' > expected
-main.c:1: expected '{', but got '}'
+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'
+main.c:1: expected ';', but got '123'
EOF
test_compile_error <<'EOF'