PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / warn / pr81119.C
blob2f822361e2b27d3b2327ab44e3576f68a13c2389
1 // PR c++/81119 Wshadow regression
2 // { dg-additional-options "-Wshadow" }
4 struct A;
5 typedef A A; // No warning, does not hide
7 struct B; // { dg-message "previous" }
8 typedef int B; // { dg-error "conflicting" }
10 struct C;
11 void C (); // { dg-warning "hides constructor" }
12 void C (int); // warning not repeated
14 struct D;
15 int D; // no warning, not a function
17 struct E;
19 enum X 
20   {E}; // no warning, not a function