aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/decomp41.C
blob: 3c8e1504c6313a3e2634ca3a0580907a18cbceee (plain)
1
2
3
4
5
6
7
8
9
// PR c++/85208
// { dg-do compile { target c++11 } }
// { dg-require-weak "" }
// { dg-options "" }

#pragma weak _ZDC1d1e1fE
struct A { int i, j, k; };
auto [a, b, c] = A ();	// { dg-warning "structured bindings only available with" "" { target c++14_down } }
auto [d, e, f] = A ();	// { dg-warning "structured bindings only available with" "" { target c++14_down } }