New test - regression of ICE

From-SVN: r37521
This commit is contained in:
Zack Weinberg 2000-11-17 16:45:34 +00:00
parent 8b25cab976
commit 9e7d5ee809

View 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" } */
;
}