Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / warn / Wshadow-11.C
blobd3b70c39acec1f2c24740a51e17efdfdc15c64a9
1 // PR c++/56100
2 // { dg-options "-Wshadow" }
4 int foo;  // { dg-message "shadowed declaration" }
6 struct bar
8   template <typename T>
9   void baz () { int foo; }  // { dg-warning "shadows a global" }
12 int main ()
14   bar ().baz <int> ();