mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-23 16:29:30 +08:00
New test; derived from glibc regression
From-SVN: r25507
This commit is contained in:
parent
5762f506e7
commit
6efbe8353c
29
gcc/testsuite/gcc.dg/990228-1.c
Normal file
29
gcc/testsuite/gcc.dg/990228-1.c
Normal file
@ -0,0 +1,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 { \} } }
|
||||
*/
|
Loading…
Reference in New Issue
Block a user