aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2003-12-23 10:33:00 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2003-12-23 02:33:00 -0800
commit4ea49dd0517390b65f41c3aecc608a0a2e9f9df8 (patch)
treea44dd06d95e589530335fd14c3b8c48738c9df11 /gcc
parentc36d5c04b1be32439c125f35b7fa9d06c023dd62 (diff)
downloadgcc-4ea49dd0517390b65f41c3aecc608a0a2e9f9df8.zip
gcc-4ea49dd0517390b65f41c3aecc608a0a2e9f9df8.tar.gz
gcc-4ea49dd0517390b65f41c3aecc608a0a2e9f9df8.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/20031223-1.c11
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 9095c8a..985f926 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
index 0000000..a022bf2
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/20031223-1.c
@@ -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 "" } */
+}