1 // Wshadows was giving warnings for nested function parameters in nested class
2 // or structure that we didn't want.
4 // { dg-options "-Wshadow -Wno-return-type" }
9 int bar (int n) { return n++; } // { dg-error "a function-definition is not allowed here" }
10 return bar (n); // { dg-error "12:'bar' was not declared in this scope" }
16 int bar (int i) { return i++; } // { dg-bogus "shadows" }
28 static int g( int x ) // { dg-bogus "shadows" }