Sign in
gnu
/
gcc
/
a8404c07e7fca388c02c39077865f7d5fa928430
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
constexpr-label.C
blob: 4994008a77b412032f68216401634293a25e84b3 [
file
] [
log
] [
blame
]
// PR c++/97846
// { dg-do compile { target c++14 } }
constexpr
int
f
()
{
x
:
// { dg-error "label definition in 'constexpr' function only available with" "" { target c++20_down } }
return
42
;
}