1 // { dg-do run { target c++11 } }
4 struct A { int i; long long j; } a[64];
15 for (auto & [ x, y ] : a) // { dg-warning "structured bindings only available with" "" { target c++14_down } }
21 for (const auto [ u, v ] : a) // { dg-warning "structured bindings only available with" "" { target c++14_down } }
23 if (u != i + 2 || v != 2 * i++ + 3)
27 for (auto [ x, y ] : a) // { dg-warning "structured bindings only available with" "" { target c++14_down } }
31 if (x != i + 6 || y != 2 * i++ + 8)
35 for (const auto x : a)
37 if (x.i != i + 2 || x.j != 2 * i++ + 3)