tree: Don't reuse types if TYPE_USER_ALIGN differ [PR94775]
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wshadow-9.C
blob836bce62cf0c183c1808c5071dc457875127fd8d
1 // PR c++/56100
2 // { dg-options "-Wshadow" }
4 int foo;  // { dg-message "shadowed declaration" }
6 template <typename T>
7 struct bar
9   void baz () { int foo; }  // { dg-warning "shadows a global" }
12 int main ()
14   bar <int> ().baz ();