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:
Zack Weinberg 1999-01-19 12:10:15 +00:00
parent 3243be289f
commit ea96098d3b

View 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;
}