aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test_compile_error.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_compile_error.sh')
-rw-r--r--tests/test_compile_error.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_compile_error.sh b/tests/test_compile_error.sh
new file mode 100644
index 0000000..2e3c207
--- /dev/null
+++ b/tests/test_compile_error.sh
@@ -0,0 +1,9 @@
+cat > main.c
+
+"$ducc" main.c > /dev/null 2> output
+if [[ $? -eq 0 ]]; then
+ "expected to fail"
+ exit 1
+fi
+
+diff -u expected output