[Test] Convert IGNORE: NATIVE directives in box tests specialBuiltins

^KT-59057

Merge-request: KT-MR-10760
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
Vladimir Sukharev
2023-06-23 08:07:13 +00:00
committed by Space Team
parent c3746652a4
commit 503cd6196c
16 changed files with 76 additions and 127 deletions
@@ -49729,6 +49729,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
runTest("compiler/testData/codegen/box/specialBuiltins/bridges.kt");
}
@Test
@TestMetadata("bridgesJVM.kt")
public void testBridgesJVM() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/bridgesJVM.kt");
}
@Test
@TestMetadata("charBuffer.kt")
public void testCharBuffer() throws Exception {
@@ -49729,6 +49729,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
runTest("compiler/testData/codegen/box/specialBuiltins/bridges.kt");
}
@Test
@TestMetadata("bridgesJVM.kt")
public void testBridgesJVM() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/bridgesJVM.kt");
}
@Test
@TestMetadata("charBuffer.kt")
public void testCharBuffer() throws Exception {
@@ -1,8 +1,3 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE
// KJS_WITH_FULL_RUNTIME
// IGNORE_BACKEND: NATIVE
interface A0 {
val size: Int get() = 56
}
@@ -31,16 +26,10 @@ interface I2 {
val size: Int
}
val list = ArrayList<String>()
class B2 : ArrayList<String>(list), I2
interface I3<T> {
val size: T
}
class B3 : ArrayList<String>(list), I3<Int>
interface I4<T> {
val size: T get() = 56 as T
}
@@ -66,8 +55,6 @@ class B5 : I5 {
}
fun box(): String {
list.add("1")
val b0 = B0()
if (b0.size != 56) return "fail 0: ${b0.size}"
var x: Collection<String> = B0()
@@ -80,20 +67,6 @@ fun box(): String {
x = B1()
if (x.size != 56) return "fail 2: ${x.size}"
val b2 = B2()
if (b2.size != 1) return "fail 3: ${b2.size}"
x = B2()
if (x.size != 1) return "fail 4: ${x.size}"
val i2: I2 = b2
if (i2.size != 1) return "fail 5: ${i2.size}"
val b3 = B3()
if (b3.size != 1) return "fail 6: ${b3.size}"
x = B3()
if (x.size != 1) return "fail 7: ${x.size}"
val i3: I3<Int> = b3
if (i3.size != 1) return "fail 8: ${i3.size}"
val b4 = B4()
if (b4.size != 56) return "fail 9: ${b4.size}"
x = B4()
@@ -0,0 +1,37 @@
// TARGET_BACKEND: JVM
// TARGET_BACKEND: JVM_IR
// KJS_WITH_FULL_RUNTIME
val list = ArrayList<String>()
interface I2 {
val size: Int
}
class B2 : ArrayList<String>(list), I2
interface I3<T> {
val size: T
}
class B3 : ArrayList<String>(list), I3<Int>
fun box(): String {
list.add("1")
val b2 = B2()
if (b2.size != 1) return "fail 3: ${b2.size}"
var x: Collection<String> = B2()
if (x.size != 1) return "fail 4: ${x.size}"
val i2: I2 = b2
if (i2.size != 1) return "fail 5: ${i2.size}"
val b3 = B3()
if (b3.size != 1) return "fail 6: ${b3.size}"
x = B3()
if (x.size != 1) return "fail 7: ${x.size}"
val i3: I3<Int> = b3
if (i3.size != 1) return "fail 8: ${i3.size}"
return "OK"
}
@@ -1,7 +1,7 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE
// KJS_WITH_FULL_RUNTIME
// IGNORE_BACKEND: NATIVE
// DONT_TARGET_EXACT_BACKEND: NATIVE
open class Base<Target : DatabaseEntity>() : HashSet<Target>() {
override fun remove(element: Target): Boolean {
@@ -1,7 +1,7 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE
// KJS_WITH_FULL_RUNTIME
// IGNORE_BACKEND: NATIVE
// DONT_TARGET_EXACT_BACKEND: NATIVE
open class Map1 : HashMap<String, Any?>()
class Map2 : Map1()
@@ -1,7 +1,7 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE
// KJS_WITH_FULL_RUNTIME
// IGNORE_BACKEND: NATIVE
// DONT_TARGET_EXACT_BACKEND: NATIVE
class A : ArrayList<String>() {
override val size: Int get() = super.size + 56
@@ -1,7 +1,7 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE
// KJS_WITH_FULL_RUNTIME
// IGNORE_BACKEND: NATIVE
// DONT_TARGET_EXACT_BACKEND: NATIVE
class MySet : HashSet<Int>() {
override fun remove(element: Int): Boolean {
return super.remove(element)
@@ -46945,6 +46945,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/specialBuiltins/bridges.kt");
}
@Test
@TestMetadata("bridgesJVM.kt")
public void testBridgesJVM() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/bridgesJVM.kt");
}
@Test
@TestMetadata("charBuffer.kt")
public void testCharBuffer() throws Exception {
@@ -49729,6 +49729,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/specialBuiltins/bridges.kt");
}
@Test
@TestMetadata("bridgesJVM.kt")
public void testBridgesJVM() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/bridgesJVM.kt");
}
@Test
@TestMetadata("charBuffer.kt")
public void testCharBuffer() throws Exception {
@@ -49729,6 +49729,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
runTest("compiler/testData/codegen/box/specialBuiltins/bridges.kt");
}
@Test
@TestMetadata("bridgesJVM.kt")
public void testBridgesJVM() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/bridgesJVM.kt");
}
@Test
@TestMetadata("charBuffer.kt")
public void testCharBuffer() throws Exception {
@@ -39914,6 +39914,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/specialBuiltins/bridges.kt");
}
@TestMetadata("bridgesJVM.kt")
public void testBridgesJVM() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/bridgesJVM.kt");
}
@TestMetadata("charBuffer.kt")
public void testCharBuffer() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/charBuffer.kt");
@@ -37933,12 +37933,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
runTest("compiler/testData/codegen/box/specialBuiltins/bridges.kt");
}
@Test
@TestMetadata("commonBridgesTarget.kt")
public void testCommonBridgesTarget() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/commonBridgesTarget.kt");
}
@Test
@TestMetadata("emptyList.kt")
public void testEmptyList() throws Exception {
@@ -37957,12 +37951,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
runTest("compiler/testData/codegen/box/specialBuiltins/emptyStringMap.kt");
}
@Test
@TestMetadata("entrySetSOE.kt")
public void testEntrySetSOE() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/entrySetSOE.kt");
}
@Test
@TestMetadata("enumAsOrdinaled.kt")
public void testEnumAsOrdinaled() throws Exception {
@@ -37975,12 +37963,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
runTest("compiler/testData/codegen/box/specialBuiltins/exceptionCause.kt");
}
@Test
@TestMetadata("explicitSuperCall.kt")
public void testExplicitSuperCall() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/explicitSuperCall.kt");
}
@Test
@TestMetadata("irrelevantRemoveAtOverride.kt")
public void testIrrelevantRemoveAtOverride() throws Exception {
@@ -38023,12 +38005,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
runTest("compiler/testData/codegen/box/specialBuiltins/removeAtTwoSpecialBridges.kt");
}
@Test
@TestMetadata("removeSetInt.kt")
public void testRemoveSetInt() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/removeSetInt.kt");
}
@Test
@TestMetadata("throwable.kt")
public void testThrowable() throws Exception {
@@ -38903,12 +38903,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
runTest("compiler/testData/codegen/box/specialBuiltins/bridges.kt");
}
@Test
@TestMetadata("commonBridgesTarget.kt")
public void testCommonBridgesTarget() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/commonBridgesTarget.kt");
}
@Test
@TestMetadata("emptyList.kt")
public void testEmptyList() throws Exception {
@@ -38927,12 +38921,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
runTest("compiler/testData/codegen/box/specialBuiltins/emptyStringMap.kt");
}
@Test
@TestMetadata("entrySetSOE.kt")
public void testEntrySetSOE() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/entrySetSOE.kt");
}
@Test
@TestMetadata("enumAsOrdinaled.kt")
public void testEnumAsOrdinaled() throws Exception {
@@ -38945,12 +38933,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
runTest("compiler/testData/codegen/box/specialBuiltins/exceptionCause.kt");
}
@Test
@TestMetadata("explicitSuperCall.kt")
public void testExplicitSuperCall() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/explicitSuperCall.kt");
}
@Test
@TestMetadata("irrelevantRemoveAtOverride.kt")
public void testIrrelevantRemoveAtOverride() throws Exception {
@@ -38993,12 +38975,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
runTest("compiler/testData/codegen/box/specialBuiltins/removeAtTwoSpecialBridges.kt");
}
@Test
@TestMetadata("removeSetInt.kt")
public void testRemoveSetInt() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/removeSetInt.kt");
}
@Test
@TestMetadata("throwable.kt")
public void testThrowable() throws Exception {
@@ -37449,12 +37449,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/specialBuiltins/bridges.kt");
}
@Test
@TestMetadata("commonBridgesTarget.kt")
public void testCommonBridgesTarget() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/commonBridgesTarget.kt");
}
@Test
@TestMetadata("emptyList.kt")
public void testEmptyList() throws Exception {
@@ -37473,12 +37467,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/specialBuiltins/emptyStringMap.kt");
}
@Test
@TestMetadata("entrySetSOE.kt")
public void testEntrySetSOE() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/entrySetSOE.kt");
}
@Test
@TestMetadata("enumAsOrdinaled.kt")
public void testEnumAsOrdinaled() throws Exception {
@@ -37491,12 +37479,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/specialBuiltins/exceptionCause.kt");
}
@Test
@TestMetadata("explicitSuperCall.kt")
public void testExplicitSuperCall() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/explicitSuperCall.kt");
}
@Test
@TestMetadata("irrelevantRemoveAtOverride.kt")
public void testIrrelevantRemoveAtOverride() throws Exception {
@@ -37539,12 +37521,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/specialBuiltins/removeAtTwoSpecialBridges.kt");
}
@Test
@TestMetadata("removeSetInt.kt")
public void testRemoveSetInt() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/removeSetInt.kt");
}
@Test
@TestMetadata("throwable.kt")
public void testThrowable() throws Exception {
@@ -37934,12 +37934,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
runTest("compiler/testData/codegen/box/specialBuiltins/bridges.kt");
}
@Test
@TestMetadata("commonBridgesTarget.kt")
public void testCommonBridgesTarget() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/commonBridgesTarget.kt");
}
@Test
@TestMetadata("emptyList.kt")
public void testEmptyList() throws Exception {
@@ -37958,12 +37952,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
runTest("compiler/testData/codegen/box/specialBuiltins/emptyStringMap.kt");
}
@Test
@TestMetadata("entrySetSOE.kt")
public void testEntrySetSOE() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/entrySetSOE.kt");
}
@Test
@TestMetadata("enumAsOrdinaled.kt")
public void testEnumAsOrdinaled() throws Exception {
@@ -37976,12 +37964,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
runTest("compiler/testData/codegen/box/specialBuiltins/exceptionCause.kt");
}
@Test
@TestMetadata("explicitSuperCall.kt")
public void testExplicitSuperCall() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/explicitSuperCall.kt");
}
@Test
@TestMetadata("irrelevantRemoveAtOverride.kt")
public void testIrrelevantRemoveAtOverride() throws Exception {
@@ -38024,12 +38006,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
runTest("compiler/testData/codegen/box/specialBuiltins/removeAtTwoSpecialBridges.kt");
}
@Test
@TestMetadata("removeSetInt.kt")
public void testRemoveSetInt() throws Exception {
runTest("compiler/testData/codegen/box/specialBuiltins/removeSetInt.kt");
}
@Test
@TestMetadata("throwable.kt")
public void testThrowable() throws Exception {