testsuite: update mangling
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / pr99833.C
blob33230535e102a3a94683d2c464f940aa645d7edc
1 // PR c++/99833
2 // { dg-do compile { target c++20 } }
4 #include <tuple>
6 auto f(auto&& x)
8   [&](auto...) {
9     auto y = std::tuple{ "what's happening here?", x };
10     if constexpr (auto [_, z] = y; requires { z; })
11       return;
12   }();
15 int main()
17   f(42);