1 /* { dg-do compile } */
2 /* { dg-options "-Wshadow=local" } */
4 int decl1
; /* should not warn */
5 void foo (double decl1
) /* should not warn */
9 void foo2 (int d
) /* { dg-message "shadowed declaration" } */
12 double d
; /* { dg-warning "shadows a parameter" } */
18 int local
; /* { dg-message "shadowed declaration" } */
20 int local
; /* { dg-warning "shadows a previous local" } */