Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/constexpr-label.C

raw
1 // PR c++/97846
2 // { dg-do compile { target c++14 } }
3
4 constexpr int
5 f ()
6 {
7 x: // { dg-error "label definition in 'constexpr' function only available with" "" { target c++20_down } }
8 return 42;
9 }