re PR c/11995 (Error recovery problem after invalid labelled declaration in c99 mode)

2003-12-21  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c/11995
        * gcc.dg/20031223-1.c: New test.

From-SVN: r74970
This commit is contained in:
Andrew Pinski 2003-12-23 10:33:00 +00:00 committed by Andrew Pinski
parent c36d5c04b1
commit 4ea49dd051
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-12-21 Andrew Pinski <pinskia@physics.uc.edu>
PR c/11995
* gcc.dg/20031223-1.c: New test.
2003-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
* gcc.dg/noreturn-7.c: New test.

View File

@ -0,0 +1,11 @@
/* PR c/11995 */
/* The following test used to ICE after an error message
because GCC was trying to expand the trees to rtl. */
/* { dg-do compile } */
/* { dg-options "" } */
void f ()
{
l: int; /* { dg-error "" } */
}