]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
New test - regression of ICE
authorZack Weinberg <zack@gcc.gnu.org>
Fri, 17 Nov 2000 16:45:34 +0000 (16:45 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Fri, 17 Nov 2000 16:45:34 +0000 (16:45 +0000)
From-SVN: r37521

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

diff --git a/gcc/testsuite/gcc.dg/20001116-1.c b/gcc/testsuite/gcc.dg/20001116-1.c
new file mode 100644 (file)
index 0000000..5833dd8
--- /dev/null
@@ -0,0 +1,11 @@
+/* This looks like a warning test, but it's actually a regression test for a
+   nasty ICE due to messed up parser context.  Problem originally found
+   during bootstrap; this is synthetic.  -zw  */
+/* { dg-do compile } 
+   { dg-options -W } */
+
+void foo (int x)
+{
+  if (x)       /* { dg-warning "empty body in an if-statement" } */
+    ;
+}