From 72849a3dc3e0c4f23319aff5dae3c574ff8acc26 Mon Sep 17 00:00:00 2001 From: Dmitry Petrov Date: Fri, 23 Apr 2021 16:01:30 +0300 Subject: [PATCH] JVM_IR update test for KT-36637 --- .../codegen/bytecodeText/constClosureOptimization.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/compiler/testData/codegen/bytecodeText/constClosureOptimization.kt b/compiler/testData/codegen/bytecodeText/constClosureOptimization.kt index 65e28073b2e..c8e3a272503 100644 --- a/compiler/testData/codegen/bytecodeText/constClosureOptimization.kt +++ b/compiler/testData/codegen/bytecodeText/constClosureOptimization.kt @@ -1,7 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR -// IGNORE_BACKEND: JVM_IR -// TODO KT-36637 Trivial closure optimizatin in JVM_IR - fun test() { fun local(){ @@ -21,6 +17,12 @@ fun test() { (::local)() } +// JVM_TEMPLATES // 3 GETSTATIC ConstClosureOptimizationKt\$test\$1\.INSTANCE // 1 GETSTATIC ConstClosureOptimizationKt\$test\$2\.INSTANCE // 1 GETSTATIC ConstClosureOptimizationKt\$test\$3\.INSTANCE + +// JVM_IR_TEMPLATES +// 1 GETSTATIC ConstClosureOptimizationKt\$test\$1.INSTANCE +// 1 GETSTATIC ConstClosureOptimizationKt\$test\$2.INSTANCE +// 1 GETSTATIC ConstClosureOptimizationKt\$test\$local\$1.INSTANCE \ No newline at end of file