Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
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
();
}