Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
init-statement10.C
blob: d13d135dab104d40138df91a98233779ecb88d4f [
file
] [
log
] [
blame
]
// DR 2345 - Jumping across initializers in init-statements and conditions.
// { dg-do compile { target c++17 } }
int
fn
()
{
goto
X
;
if
(
int
i
=
42
;
i
==
42
)
{
X
:
// { dg-error "jump to label" }
return
i
;
}
return
-
1
;
}