1 2 3 4 5 6 7 8 9
/* { dg-do compile } */ /* { dg-options "-Wno-shadow" } */ void func() { int i; { int i; /* should not warn */ } }