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