☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp23
/
consteval-if5.C
☽
☼
gcc/testsuite/g++.dg/cpp23/consteval-if5.C
code
plain
raw
1
// { dg-do compile { target c++20 } }
2
// { dg-options "-w" }
3
4
void f()
5
{
6
if consteval // { dg-message "enters 'consteval if'" }
7
{
8
goto l; // { dg-message "from here" }
9
}
10
else
11
{
12
l:; // { dg-error "jump to label" }
13
}
14
}