aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/990228-1.c
blob: 4b846ea219fe656fe8ef6abc0214c17af3e667fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* Regression test for cpp.  The following input may cause core dumps
   or # line markers in the middle of the line.  */
/* { dg-do preprocess } */

#define foo(string, arg) bar(2, string, arg)

foo ("\
\
\
\
\
\
\
\
\
\
\
",
NULL);

/*
   { dg-final { if ![file exists 990228-1.i] { return }			} }
   { dg-final { set tmp [grep 990228-1.i ".#"]				} }
   { dg-final { if { [string length $tmp] == 0 } \{			} }
   { dg-final {     pass "990228-1.c: linemarkers in middle of line"	} }
   { dg-final { \} else \{						} }
   { dg-final {     fail "990228-1.c: linemarkers in middle of line"    } }
   { dg-final { \}							} }
 */