aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/059.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/059.sh b/tests/059.sh
new file mode 100644
index 0000000..18e9bd7
--- /dev/null
+++ b/tests/059.sh
@@ -0,0 +1,17 @@
+set -e
+
+cat <<'EOF' > expected
+expected '{', but got '}'
+EOF
+
+bash ../../test_compile_error.sh <<'EOF'
+int main() }
+EOF
+
+cat <<'EOF' > expected
+expected '{', but got '123 (<integer>)'
+EOF
+
+bash ../../test_compile_error.sh <<'EOF'
+int main() 123
+EOF