Debian Codegraph @

gcc/testsuite/g++.dg/cpp23/consteval-if8.C

raw
1 // { dg-do compile { target c++20 } }
2 // { dg-options "-w" }
3
4 void f()
5 {
6 if consteval
7 {
8 l:; // { dg-error "jump to label" }
9 }
10 else
11 {
12 goto l; // { dg-message "from here" }
13 }
14 }