Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wshadow-9.C
blob: 836bce62cf0c183c1808c5071dc457875127fd8d [
file
] [
log
] [
blame
]
// PR c++/56100
// { dg-options "-Wshadow" }
int
foo
;
// { dg-message "shadowed declaration" }
template
<
typename
T
>
struct
bar
{
void
baz
()
{
int
foo
;
}
// { dg-warning "shadows a global" }
};
int
main
()
{
bar
<int>
().
baz
();
}