JVM: CHECK_BYTECODE_TEST directive + use it in INVOKEDYNAMIC tests
This commit is contained in:
committed by
TeamCityServer
parent
ca352c9556
commit
162363a324
@@ -7,6 +7,10 @@
|
||||
// desugaring on Android
|
||||
// IGNORE_BACKEND: ANDROID
|
||||
|
||||
// CHECK_BYTECODE_TEXT
|
||||
// JVM_IR_TEMPLATES
|
||||
// 1 java/lang/invoke/LambdaMetafactory
|
||||
|
||||
fun lambdaToString(fn: () -> Unit) = fn.toString()
|
||||
|
||||
fun box(): String {
|
||||
@@ -14,4 +18,4 @@ fun box(): String {
|
||||
if (!str.startsWith("LambdaToStingKt"))
|
||||
return "Failed: indy lambda toString is inherited from java.lang.Object: $str"
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user