Fix dg-do target
[official-gcc.git] / gcc / testsuite / g++.dg / warn / pr86881.C
blob6ce17e87362024f1597f11db5593f62f1924d51e
1 // PR c++/86881 ICE with shadow warning
2 // { dg-do compile { target c++11 } }
3 // { dg-additional-options { -Wshadow-compatible-local } }}
5 void a() {
6   auto b([] {});
7   {
8     auto b = 0;
9   }
12 struct Proxy { };
14 void Two ()
16   auto my = Proxy ();
17   {
18     auto my = Proxy (); // { dg-warning "shadows" "" { xfail *-*-* } }
19   };