aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-08-04 08:23:05 +0900
committernsfisis <nsfisis@gmail.com>2025-08-15 10:06:21 +0900
commit45f51624c4fdfab66be2976f1ceef32f000dd34d (patch)
treeea2289bf05cc7c929172fc4fcb4c7f8b3acee744 /tests
parent1edc3a61992e24ab95306ad5506e6b33cbcf765a (diff)
downloadducc-45f51624c4fdfab66be2976f1ceef32f000dd34d.tar.gz
ducc-45f51624c4fdfab66be2976f1ceef32f000dd34d.tar.zst
ducc-45f51624c4fdfab66be2976f1ceef32f000dd34d.zip
feat: report error on unknown preprocessor directive
Diffstat (limited to 'tests')
-rw-r--r--tests/083.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/083.sh b/tests/083.sh
new file mode 100644
index 0000000..8047f1f
--- /dev/null
+++ b/tests/083.sh
@@ -0,0 +1,11 @@
+set -e
+
+cat <<'EOF' > expected
+main.c:1: unknown preprocessor directive (foo (<identifier>))
+EOF
+
+bash ../../test_compile_error.sh <<'EOF'
+#foo
+
+int main() {}
+EOF