projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b25cab
)
New test - regression of ICE
author
Zack Weinberg
<zack@gcc.gnu.org>
Fri, 17 Nov 2000 16:45:34 +0000
(16:45 +0000)
committer
Zack 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]
patch
|
blob
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
+++ 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" } */
+ ;
+}