Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/constexpr-dtor11.C

raw
1 // PR c++/102191
2 // { dg-do compile { target c++20 } }
3
4 struct X {
5 struct A {
6 constexpr ~A() noexcept(false) { }
7 };
8
9 constexpr A operator()(auto...) { return {}; }
10 };
11
12 void f() { []() consteval { X{}(); }(); }