[PL][tests] Keep PL test data under "testData/klib/" dir

This commit is contained in:
Dmitriy Dolovov
2023-08-15 14:38:02 +02:00
committed by Space Team
parent 9e3afe7a1f
commit 5c3e63e19a
186 changed files with 156 additions and 156 deletions
@@ -0,0 +1,3 @@
enum class E {
UNCHANGED1, REMOVED, UNCHANGED2
}
@@ -0,0 +1,3 @@
enum class E {
UNCHANGED1, /*REMOVED,*/ UNCHANGED2
}
@@ -0,0 +1,6 @@
STEP 0:
dependencies: stdlib
STEP 1:
dependencies: stdlib
modifications:
U : l1.kt.1 -> l1.kt
@@ -0,0 +1,5 @@
fun compute(e: E): String = when (e) {
E.UNCHANGED1 -> "OK"
E.REMOVED -> "FAIL1"
E.UNCHANGED2 -> "FAIL2"
}
@@ -0,0 +1,2 @@
STEP 0:
dependencies: stdlib, lib1
@@ -0,0 +1,7 @@
import abitestutils.abiTest
fun box() = abiTest {
expectFailure(linkage("Can not get instance of singleton 'E.REMOVED': No enum entry found for symbol '/E.REMOVED'")) { compute(E.UNCHANGED2) }
expectFailure(linkage("Can not get instance of singleton 'E.REMOVED': No enum entry found for symbol '/E.REMOVED'")) { compute(E.REMOVED) }
expectSuccess { compute(E.UNCHANGED1) }
}
@@ -0,0 +1,2 @@
STEP 0:
dependencies: stdlib, lib1, lib2
@@ -0,0 +1,7 @@
MODULES: lib1, lib2, main
STEP 0:
libs: lib1, lib2, main
STEP 1:
libs: lib1