New test - regression of ICE
From-SVN: r37521
This commit is contained in:
parent
8b25cab976
commit
9e7d5ee809
11
gcc/testsuite/gcc.dg/20001116-1.c
Normal file
11
gcc/testsuite/gcc.dg/20001116-1.c
Normal file
@ -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" } */
|
||||
;
|
||||
}
|
Loading…
Reference in New Issue
Block a user