2 /* { dg-do compile } */
3 /* { dg-options "-Wshadow" } */
8 if (foo
) /* { dg-error "undeclared|for each" } */
9 foo (); /* { dg-warning "shadows previous" } */
15 if (foo
) /* { dg-error "undeclared" } */
17 int foo
; /* { dg-warning "shadows previous" } */