]> gcc.gnu.org Git - gcc.git/commitdiff
re PR c/11995 (Error recovery problem after invalid labelled declaration in c99 mode)
authorAndrew Pinski <pinskia@physics.uc.edu>
Tue, 23 Dec 2003 10:33:00 +0000 (10:33 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Tue, 23 Dec 2003 10:33:00 +0000 (02:33 -0800)
2003-12-21  Andrew Pinski  <pinskia@physics.uc.edu>

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

From-SVN: r74970

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20031223-1.c [new file with mode: 0644]

index 9095c8a4dc58f4058a74bccd90b9b2c0c541ca1b..985f9260c76972dbecc3ce15f092d62bac5c89b1 100644 (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.
diff --git a/gcc/testsuite/gcc.dg/20031223-1.c b/gcc/testsuite/gcc.dg/20031223-1.c
new file mode 100644 (file)
index 0000000..a022bf2
--- /dev/null
@@ -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 "" } */
+}
This page took 0.087029 seconds and 5 git commands to generate.