annotate gcc/testsuite/gcc.dg/20001116-1.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* This looks like a warning test, but it's actually a regression test for a
kono
parents:
diff changeset
2 nasty ICE due to messed up parser context. Problem originally found
kono
parents:
diff changeset
3 during bootstrap; this is synthetic. -zw */
kono
parents:
diff changeset
4 /* { dg-do compile }
kono
parents:
diff changeset
5 { dg-options -Wempty-body } */
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 void foo (int x)
kono
parents:
diff changeset
8 {
kono
parents:
diff changeset
9 if (x)
kono
parents:
diff changeset
10 ; /* { dg-warning "empty body in an" } */
kono
parents:
diff changeset
11 }