2 // { dg-do run { target c++14 } }
5 extern "C" void abort ();
6 struct S { int a, b; };
13 S x[4] = { { N, 2 }, { 3, 4 }, { 5, 6 }, { 7, 8 } };
14 auto f = [](auto & y) {
15 for (auto & [ u, v ] : y) // { dg-warning "structured bindings only available with" "" { target c++14_down } }
17 if ((u & 1) != 1 || v != u + 1 || u < N || u > 7 || (c & (1 << u))
18 || &u != &y[v / 2 - 1].a || &v != &y[v / 2 - 1].b)