blob: d3b70c39acec1f2c24740a51e17efdfdc15c64a9 [file] [log] [blame]
// PR c++/56100
// { dg-options "-Wshadow" }
int foo; // { dg-message "shadowed declaration" }
struct bar
{
template <typename T>
void baz () { int foo; } // { dg-warning "shadows a global" }
};
int main ()
{
bar ().baz <int> ();
}