1 /* PR c/108079 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wunused-variable" } */
4
5 int
6 main ()
7 {
8 static int x; /* { dg-warning "unused variable 'x'" } */
9 /* { dg-bogus "'x' defined but not used" "" { target *-*-* } .-1 } */
10 }