Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
49b2ac1b100c5042a0e98582713938062efa6a31
/
.
/
compiler
/
testData
/
codegen
/
bytecodeText
/
redundantGotoRemoving.kt
blob: 90dfdfc8f2cd9ed3256a0f4ba91e56b43f008551 [
file
] [
log
] [
blame
]
val nonConstFlag
=
true
inline
fun
<
T
,
R
>
calc
(
value
:
T
,
fn
:
(
T
)
->
R
)
:
R
=
fn
(
value
)
inline
fun
<
T
>
identity
(
value
:
T
)
:
T
=
calc
(
value
)
{
if
(
nonConstFlag
)
return
it
it
}
fun foo
()
{
val x
=
identity
(
1
)
}
// 1 GOTO