Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-if9.C
blob: 8aa87f74437306c477cd99af52459a02a6168cdb [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
// { dg-options "-w" }
void
f
(
int
i
)
{
switch
(
i
)
if
constexpr
(
false
)
// { dg-message "enters 'constexpr if'" }
{
case
42
:;
// { dg-error "jump to case label" }
}
}