1 // PR c++/81197
2 // { dg-do compile { target c++11 } }
3 // { dg-options "" }
4 
5 struct X { int a; };
6 struct Y { int b, c, d; };
7 auto&& [t] = X{};	// { dg-warning "structured bindings only available with" "" { target c++14_down } }
8 namespace A { namespace B { auto&& [u, v, ww] = Y{}; } }	// { dg-warning "structured bindings only available with" "" { target c++14_down } }
9 
10 // { dg-final { scan-assembler "_ZGRDC1tE_" } }
11 // { dg-final { scan-assembler "_ZGRN1A1BDC1u1v2wwEE_" } }
12