Debian Codegraph @

gcc/testsuite/g++.dg/warn/Wshadow-14.C

raw
1 // PR c++/68374
2 // { dg-options "-Wshadow" }
3
4 void foo ()
5 {
6 static int i; // { dg-message "shadowed declaration" }
7 {
8 int i; // { dg-warning "shadows a previous local" }
9 }
10 }