Debian Codegraph @

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

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> ();