1999-01-19 07:10:15 -05:00
|
|
|
/* 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 */
|
1999-02-28 10:03:13 -05:00
|
|
|
/* { dg-do run } */
|
|
|
|
|
1999-01-19 07:10:15 -05:00
|
|
|
int i = __LINE__\
|
|
|
|
;
|
|
|
|
|
1999-02-28 10:03:13 -05:00
|
|
|
int main (void) /* { dg-bogus "parse error" "semicolon eaten" } */
|
1999-01-19 07:10:15 -05:00
|
|
|
{
|
1999-02-28 10:03:13 -05:00
|
|
|
if (i != 6)
|
1999-01-19 07:10:15 -05:00
|
|
|
abort();
|
|
|
|
else
|
|
|
|
return 0;
|
|
|
|
}
|