[PL] ABI compatibility tests for reworked partial linkage

This commit is contained in:
Dmitriy Dolovov
2023-03-22 13:59:33 +01:00
committed by Space Team
parent 2a4d880037
commit 4f1155b06f
262 changed files with 4278 additions and 1359 deletions
+3
View File
@@ -0,0 +1,3 @@
enum class E {
UNCHANGED1, /*ADDED,*/ UNCHANGED2
}
+3
View File
@@ -0,0 +1,3 @@
enum class E {
UNCHANGED1, ADDED, UNCHANGED2
}
@@ -0,0 +1,6 @@
STEP 0:
dependencies: stdlib
STEP 1:
dependencies: stdlib
modifications:
U : l1.kt.1 -> l1.kt
+4
View File
@@ -0,0 +1,4 @@
fun compute(e: E): String = when (e) {
E.UNCHANGED1 -> "OK"
E.UNCHANGED2 -> "OK"
}
@@ -0,0 +1,2 @@
STEP 0:
dependencies: stdlib, lib1
+7
View File
@@ -0,0 +1,7 @@
import abitestutils.abiTest
fun box() = abiTest {
expectSuccess { compute(E.UNCHANGED2) }
expectFailure(noWhenBranch()) { compute(E.ADDED) }
expectSuccess { compute(E.UNCHANGED1) }
}
@@ -0,0 +1,2 @@
STEP 1:
dependencies: stdlib, lib1, lib2
+7
View File
@@ -0,0 +1,7 @@
MODULES: lib1, lib2, main
STEP 0:
libs: lib1, lib2
STEP 1:
libs: lib1, main