JVM IR: More tests for inlining in $default stubs

This commit is contained in:
Steven Schäfer
2020-09-15 12:02:13 +02:00
committed by max-kammerer
parent 5e27d9b089
commit 111c550f3c
4 changed files with 55 additions and 0 deletions
@@ -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