aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-01-08 02:44:13 +0900
committernsfisis <nsfisis@gmail.com>2026-01-08 02:44:13 +0900
commit09b9a73c2d8abcd8d459a0e412fa4bef5f4ded95 (patch)
treee4070e7a1eb78e8e0bd2ca9d2dd49dda6a7f5d5f /tests
parentca88e6a04cae4eea7b1a3ae849f4a0cc44fecb95 (diff)
downloadducc-09b9a73c2d8abcd8d459a0e412fa4bef5f4ded95.tar.gz
ducc-09b9a73c2d8abcd8d459a0e412fa4bef5f4ded95.tar.zst
ducc-09b9a73c2d8abcd8d459a0e412fa4bef5f4ded95.zip
fix: infinite loop when tokenizing "#include HEADER_MACRO"
Diffstat (limited to 'tests')
-rw-r--r--tests/include_errors.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/include_errors.sh b/tests/include_errors.sh
index 3ac546f..e0f856e 100644
--- a/tests/include_errors.sh
+++ b/tests/include_errors.sh
@@ -50,3 +50,14 @@ test_compile_error <<'EOF'
#include <hoge.h>
EOF
+cat <<'EOF' > expected
+42
+EOF
+
+test_exit_code 0 <<'EOF'
+#ifdef FOO
+#include FOO
+#endif
+
+int main() { 1 < 2; }
+EOF