aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/decomp26.C
blob: 035433385d7494203d8cb80fd2741dea4ae0184a (plain)
1
2
3
4
5
6
// PR c++/79654
// { dg-do compile { target c++11 } }
// { dg-options "" }

template<typename T> T &make();	// { dg-warning "structured bindings only available with" "" { target c++14_down } .+1 }
auto [d1, d2] = make<int>();	// { dg-error "cannot decompose non-array non-class type" }