8sa1-gcc/gcc/testsuite/gcc.dg/990119-1.c
Zack Weinberg 5762f506e7 990119-1.c: Renamed to...
1999-02-28 17:59 -0500  Zack Weinberg  <zack@rabi.columbia.edu>
	* gcc.c-torture/execute/990119-1.c: Renamed to...
	* gcc.dg/990119-1.c: this, so it will only be tested once
	(it's a preprocessor test, it doesn't need to be run at
	multiple optimization levels).

From-SVN: r25506
1999-02-28 15:03:13 +00:00

16 lines
335 B
C

/* 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 */
/* { dg-do run } */
int i = __LINE__\
;
int main (void) /* { dg-bogus "parse error" "semicolon eaten" } */
{
if (i != 6)
abort();
else
return 0;
}