☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp23
/
constexpr-nonlit3.C
☽
☼
gcc/testsuite/g++.dg/cpp23/constexpr-nonlit3.C
code
plain
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
}