Debian Codegraph @

gcc/testsuite/g++.dg/cpp23/constexpr-nonlit3.C

raw
1 // P2242R3
2 // { dg-do compile { target c++14 } }
3
4 constexpr int
5 foo ()
6 {
7 goto lab; // { dg-error "'goto' in 'constexpr' function only available with" "" { target c++20_down } }
8 lab:
9 return 1;
10 }