FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / 19990228-1.c
blob4b846ea219fe656fe8ef6abc0214c17af3e667fe
1 /* Regression test for cpp. The following input may cause core dumps
2 or # line markers in the middle of the line. */
3 /* { dg-do preprocess } */
5 #define foo(string, arg) bar(2, string, arg)
7 foo ("\
19 NULL);
22 { dg-final { if ![file exists 990228-1.i] { return } } }
23 { dg-final { set tmp [grep 990228-1.i ".#"] } }
24 { dg-final { if { [string length $tmp] == 0 } \{ } }
25 { dg-final { pass "990228-1.c: linemarkers in middle of line" } }
26 { dg-final { \} else \{ } }
27 { dg-final { fail "990228-1.c: linemarkers in middle of line" } }
28 { dg-final { \} } }