blob: 3b5585dcd841c7a4f6778093b077171f5a48baf2 [file] [log] [blame]
// P2242R3
// { dg-do compile { target c++14 } }
constexpr int
foo ()
{
goto lab; // { dg-error "'goto' in 'constexpr' function only available with" "" { target c++20_down } }
lab: // { dg-error "'goto' is not a constant expression" "" { target { c++23 } } .-1 }
return 1;
}