Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wshadow-14.C
blob: e0e3d029291c33e0aabd4aed8354627cc2055a22 [
file
] [
log
] [
blame
]
// PR c++/68374
// { dg-options "-Wshadow" }
void
foo
()
{
static
int
i
;
// { dg-message "shadowed declaration" }
{
int
i
;
// { dg-warning "shadows a previous local" }
}
}