Debian Codegraph @

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

raw
1 // PR c++/72707
2 // { dg-do compile }
3
4 void
5 foo (double x)
6 {
7 union { int x; }; // { dg-error "shadows a parameter" }
8 x = 0;
9 }