2 // { dg-do compile { target c++20 } }
6 constexpr S () : m(1) {}
7 constexpr ~S () noexcept (false) { if (m == 1) { throw; } }
30 static_assert (foo (S ()));
31 static_assert (bar ());
32 static_assert (baz ());
33 constexpr bool x = foo (S ());
34 constexpr bool y = bar ();
35 constexpr bool z = baz ();