2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / decomp18.C
blob7799e462cdd4c0c768da0f59054f519efee197c7
1 // { dg-do compile { target c++11 } }
2 // { dg-options "" }
4 struct A { char a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r; } a[64];
6 void
7 foo ()
9   int z = 0;
10   for (auto & [ b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s ] : a)     // { dg-warning "structured bindings only available with" "" { target c++14_down } }
11     z += b + c + d + e + f + g + h + i + j + k + l + m + n + o + p + q + r + s;