Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
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" }
}
}