☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
decomp31.C
☽
☼
gcc/testsuite/g++.dg/cpp1z/decomp31.C
code
plain
raw
1
// PR c++/81888
2
// { dg-do compile { target c++17 } }
3
4
struct S {
5
bool s = true;
6
};
7
8
auto [a] = S{};
9
10
template <class T>
11
bool
12
foo () noexcept
13
{
14
auto [c] = T{};
15
return c;
16
}
17
18
const bool b = foo<S> ();