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