PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / decomp33.C
blob6429108dd7c46de4253c0c96c4ebee59ae55b3d5
1 // PR c++/83217
2 // { dg-do compile { target c++11 } }
3 // { dg-options "" }
5 template <typename T>
6 struct S
8   T a;
9 };
11 void
12 foo (S<int> *b)
14   auto & [c] = *b;      // { dg-warning "structured bindings only available with" "" { target c++14_down } }
17 void
18 bar (S<char> *d)
20   auto [e] = *d;        // { dg-warning "structured bindings only available with" "" { target c++14_down } }