From 09b9a73c2d8abcd8d459a0e412fa4bef5f4ded95 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 8 Jan 2026 02:44:13 +0900 Subject: fix: infinite loop when tokenizing "#include HEADER_MACRO" --- tests/include_errors.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests') 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 EOF +cat <<'EOF' > expected +42 +EOF + +test_exit_code 0 <<'EOF' +#ifdef FOO +#include FOO +#endif + +int main() { 1 < 2; } +EOF -- cgit v1.2.3-70-g09d2