[IR][tests] Add tests for remove-inlined-callable member case

This commit is contained in:
Dmitriy Dolovov
2022-06-07 18:34:17 +03:00
parent 9c1c712057
commit 89a188d199
18 changed files with 86 additions and 0 deletions
@@ -0,0 +1,12 @@
fun box(): String {
try {
return bar()
} catch(e: Throwable) {
if (e.isLinkageError("/foo")) return "OK"
}
return "FAIL2"
}
private fun Throwable.isLinkageError(symbolName: String): Boolean =
this::class.simpleName == "IrLinkageError" && message?.startsWith("Unlinked IR symbol $symbolName|") == true
@@ -0,0 +1,2 @@
STEP 0:
dependencies: stdlib, lib1, lib2