e9c9d5731e
This is in preparation for enabling the tests for FIR which will be easier to do when the tests are on the new infrastructure.
32 lines
1.5 KiB
Kotlin
Vendored
32 lines
1.5 KiB
Kotlin
Vendored
// Code generation problem with JVM backend.
|
|
// IGNORE_BACKEND: JVM
|
|
// FILE: test.kt
|
|
class A {
|
|
suspend fun foo() {}
|
|
suspend fun foo1(l: Long) {
|
|
foo()
|
|
foo()
|
|
val dead = l
|
|
}
|
|
}
|
|
|
|
suspend fun box() {
|
|
A().foo1(42)
|
|
}
|
|
|
|
// EXPECTATIONS
|
|
// test.kt:14 box: $completion:kotlin.coroutines.Continuation=Generated_Box_MainKt$main$1
|
|
// test.kt:4 <init>:
|
|
// test.kt:14 box: $completion:kotlin.coroutines.Continuation=Generated_Box_MainKt$main$1
|
|
// test.kt:6 foo1:
|
|
// test.kt:7 foo1: $continuation:kotlin.coroutines.Continuation=A$foo1$1, $result:java.lang.Object=null, l:long=42:long
|
|
// test.kt:5 foo: $completion:kotlin.coroutines.Continuation=A$foo1$1
|
|
// test.kt:7 foo1: $continuation:kotlin.coroutines.Continuation=A$foo1$1, $result:java.lang.Object=null, l:long=42:long
|
|
// test.kt:8 foo1: $continuation:kotlin.coroutines.Continuation=A$foo1$1, $result:java.lang.Object=null, l:long=42:long
|
|
// test.kt:5 foo: $completion:kotlin.coroutines.Continuation=A$foo1$1
|
|
// test.kt:8 foo1: $continuation:kotlin.coroutines.Continuation=A$foo1$1, $result:java.lang.Object=null, l:long=42:long
|
|
// test.kt:9 foo1: $continuation:kotlin.coroutines.Continuation=A$foo1$1, $result:java.lang.Object=null, l:long=42:long
|
|
// test.kt:10 foo1: $continuation:kotlin.coroutines.Continuation=A$foo1$1, $result:java.lang.Object=null, l:long=42:long
|
|
// test.kt:14 box: $completion:kotlin.coroutines.Continuation=Generated_Box_MainKt$main$1
|
|
// test.kt:15 box: $completion:kotlin.coroutines.Continuation=Generated_Box_MainKt$main$1
|