OSDN Git Service

testsuite:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / cpp / 19990228-1.c
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 } */
4
5 #define foo(string, arg) bar(2, string, arg)
6
7 foo ("\
8 \
9 \
10 \
11 \
12 \
13 \
14 \
15 \
16 \
17 \
18 ",
19 NULL);
20
21 /*
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 { \}                                                      } }
29  */