aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2000-11-17 16:45:34 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-11-17 16:45:34 +0000
commit9e7d5ee8095d41ef744b875de504a22b46f33fb8 (patch)
treee889d28285ce2bb8db6cef0d3ff4d5cf6ad03f34 /gcc/testsuite
parent8b25cab97621c36452d09590dd3c422c83b4e19f (diff)
downloadgcc-9e7d5ee8095d41ef744b875de504a22b46f33fb8.zip
gcc-9e7d5ee8095d41ef744b875de504a22b46f33fb8.tar.gz
gcc-9e7d5ee8095d41ef744b875de504a22b46f33fb8.tar.bz2
New test - regression of ICE
From-SVN: r37521
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/gcc.dg/20001116-1.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20001116-1.c b/gcc/testsuite/gcc.dg/20001116-1.c
new file mode 100644
index 0000000..5833dd8
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/20001116-1.c
@@ -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" } */
+ ;
+}