Skip to content

Commit 9c0bcf5

Browse files
committed
added test for #346
1 parent 8f8bfe3 commit 9c0bcf5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3029,6 +3029,11 @@ static void fuzz_crash()
30293029
"n\n";
30303030
(void)preprocess(code, simplecpp::DUI()); // do not crash
30313031
}
3032+
{ // #346
3033+
const char code[] = "#define foo(intp)f##oo(intp\n"
3034+
"foo(f##oo(intp))\n";
3035+
(void)preprocess(code, simplecpp::DUI()); // do not crash
3036+
}
30323037
}
30333038

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

0 commit comments

Comments
 (0)