aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/057.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/057.sh')
-rw-r--r--tests/057.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/057.sh b/tests/057.sh
new file mode 100644
index 0000000..6d1265f
--- /dev/null
+++ b/tests/057.sh
@@ -0,0 +1,13 @@
+set -e
+
+cat <<'EOF' > expected
+cannot open include file: nonexistent.h
+EOF
+
+bash ../../test_compile_error.sh <<'EOF'
+#include "nonexistent.h"
+
+int main() {
+ return 0;
+}
+EOF