Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/decomp26.C

raw
1 // PR c++/79654
2 // { dg-do compile { target c++11 } }
3 // { dg-options "" }
4
5 template<typename T> T &make(); // { dg-warning "structured bindings only available with" "" { target c++14_down } .+1 }
6 auto [d1, d2] = make<int>(); // { dg-error "cannot decompose non-array non-class type" }