1 // PR c++/81119 Wshadow regression
2 // { dg-additional-options "-Wshadow" }
5 typedef A A; // No warning, does not hide
7 struct B; // { dg-message "previous" }
8 typedef int B; // { dg-error "conflicting" }
11 void C (); // { dg-warning "hides constructor" }
12 void C (int); // warning not repeated
15 int D; // no warning, not a function
20 {E}; // no warning, not a function