summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20001116-1.c
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-17 16:45:34 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-17 16:45:34 +0000
commitd21ec08dec45555d58f207a3776121c8e0870282 (patch)
treee889d28285ce2bb8db6cef0d3ff4d5cf6ad03f34 /gcc/testsuite/gcc.dg/20001116-1.c
parenta9ad20f952fd0acd69fbcd545632791eb607e132 (diff)
downloadgcc-d21ec08dec45555d58f207a3776121c8e0870282.tar.gz
New test - regression of ICE
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37521 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/20001116-1.c')
-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 00000000000..5833dd8b161
--- /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" } */
+ ;
+}