From ba0d9f5979e59edeb13792802ba95171fc415e96 Mon Sep 17 00:00:00 2001 From: firewave Date: Wed, 2 Jul 2025 16:26:05 +0200 Subject: [PATCH] added test for #346 --- test.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test.cpp b/test.cpp index e1968569..3c5f5488 100644 --- a/test.cpp +++ b/test.cpp @@ -3106,6 +3106,11 @@ static void fuzz_crash() "n\n"; (void)preprocess(code, simplecpp::DUI()); // do not crash } + { // #346 + const char code[] = "#define foo(intp)f##oo(intp\n" + "foo(f##oo(intp))\n"; + (void)preprocess(code, simplecpp::DUI()); // do not crash + } } int main(int argc, char **argv)