Skip to content

Commit 5bf471d

Browse files
authored
added test for danmar#346 (danmar#457)
1 parent bd068ae commit 5bf471d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3106,6 +3106,11 @@ static void fuzz_crash()
31063106
"n\n";
31073107
(void)preprocess(code, simplecpp::DUI()); // do not crash
31083108
}
3109+
{ // #346
3110+
const char code[] = "#define foo(intp)f##oo(intp\n"
3111+
"foo(f##oo(intp))\n";
3112+
(void)preprocess(code, simplecpp::DUI()); // do not crash
3113+
}
31093114
}
31103115

31113116
int main(int argc, char **argv)

0 commit comments

Comments
 (0)