New test case for the preprocessor.
I made it up myself; the inspiration came from a comp.std.c post. -zack From-SVN: r24767
This commit is contained in:
parent
3243be289f
commit
ea96098d3b
13
gcc/testsuite/gcc.c-torture/execute/990119-1.c
Normal file
13
gcc/testsuite/gcc.c-torture/execute/990119-1.c
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
/* This checks for two things:
|
||||||
|
- an obscure corner case in the standard rules for __LINE__
|
||||||
|
- regression of an associated bug in cpplib where the semicolon got lost */
|
||||||
|
int i = __LINE__\
|
||||||
|
;
|
||||||
|
|
||||||
|
int main (void)
|
||||||
|
{
|
||||||
|
if (i != 4)
|
||||||
|
abort();
|
||||||
|
else
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user