JVM IR: minor, unmute bytecode text test

Also fix typo in the name
This commit is contained in:
Alexander Udalov
2020-09-28 19:00:03 +02:00
parent b497f39c29
commit 445b2d6eb1
5 changed files with 35 additions and 30 deletions
@@ -0,0 +1,26 @@
fun test() {
{
{}()
}()
}
inline fun ifun(s: () -> Unit) {
s()
}
fun test2() {
var z = 1;
ifun {
{ z = 2 }()
}
}
// 1 class DeleteClassOnTransformationKt\$test\$1\$1
// JVM_TEMPLATES:
// 0 class DeleteClassOnTransformationKt\$test2\$1\$1
// 1 class DeleteClassOnTransformationKt\$test2\$\$inlined\$ifun\$lambda\$1
// JVM_IR_TEMPLATES:
// 1 class DeleteClassOnTransformationKt\$test2\$1\$1
// 0 class DeleteClassOnTransformationKt\$test2\$\$inlined
@@ -1,21 +0,0 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JVM_IR
fun test() {
{
{}()
}()
}
inline fun ifun(s: () -> Unit) {
s()
}
fun test2() {
var z = 1;
ifun {
{ z = 2 }()
}
}
// 1 class DeleteClassOnTransfromationKt\$test\$1\$1
// 0 class DeleteClassOnTransfromationKt\$test2\$1\$1