JVM IR: More tests for inlining in $default stubs
This commit is contained in:
committed by
max-kammerer
parent
5e27d9b089
commit
111c550f3c
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
inline fun test(p: String = "OK"): String {
|
||||
var x = 1
|
||||
return p
|
||||
}
|
||||
|
||||
fun box() : String {
|
||||
return test()
|
||||
}
|
||||
|
||||
// No $iv suffix on LVT entries in test and test$default
|
||||
// 2 LOCALVARIABLE p Ljava/lang/String;
|
||||
// 2 LOCALVARIABLE x I
|
||||
|
||||
// The $iv suffix should be present in box
|
||||
// 1 LOCALVARIABLE p\$iv Ljava/lang/String;
|
||||
// 1 LOCALVARIABLE x\$iv I
|
||||
Reference in New Issue
Block a user