☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
decomp4.C
☽
☼
gcc/testsuite/g++.dg/cpp2a/decomp4.C
code
plain
raw
1
// PR c++/107276
2
// { dg-do compile { target c++20 } }
3
4
auto f(auto x) {
5
auto [y] = x; // { dg-error "cannot decompose" }
6
return y;
7
}
8
int i = f(0);