[Test] Convert IGNORE: NATIVE directives in box tests from T to W and boxInline
^KT-59057 Merge-request: KT-MR-10752 Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
64158a8a2f
commit
f3fcaa69eb
+6
@@ -52985,6 +52985,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants2.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("is.kt")
|
||||
public void testIs() throws Exception {
|
||||
|
||||
+6
@@ -52985,6 +52985,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants2.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("is.kt")
|
||||
public void testIs() throws Exception {
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
// TARGET_BACKEND: JVM
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
package test
|
||||
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
// TARGET_BACKEND: JVM
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
fun foo1(x: Int): Boolean {
|
||||
when(x) {
|
||||
2 + 2 -> return true
|
||||
else -> return false
|
||||
}
|
||||
}
|
||||
|
||||
fun foo2(x: Int): Boolean {
|
||||
when(x) {
|
||||
Int.MAX_VALUE -> return true
|
||||
else -> return false
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
if(!foo1(4)) return "FAIL: foo1(4) must be true"
|
||||
if(foo1(1)) return "FAIL: foo1(1) must be false"
|
||||
|
||||
if(!foo2(Int.MAX_VALUE)) return "FAIL: foo2(Int.MAX_VALUE) must be true"
|
||||
if(foo2(1)) return "FAIL: foo2(1) must be false"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// https://youtrack.jetbrains.com/issue/KT-44571/Segfault-on-unnecessary-int-unboxing
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// NO_CHECK_LAMBDA_INLINING
|
||||
// FILE: 1.kt
|
||||
|
||||
+6
@@ -49913,6 +49913,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants2.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("is.kt")
|
||||
public void testIs() throws Exception {
|
||||
|
||||
+6
@@ -52985,6 +52985,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants2.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("is.kt")
|
||||
public void testIs() throws Exception {
|
||||
|
||||
+6
@@ -52985,6 +52985,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants2.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("is.kt")
|
||||
public void testIs() throws Exception {
|
||||
|
||||
+5
@@ -42776,6 +42776,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants2.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("is.kt")
|
||||
public void testIs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/is.kt");
|
||||
|
||||
+3
-9
@@ -35755,12 +35755,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/traits/multiple.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noPrivateDelegation.kt")
|
||||
public void testNoPrivateDelegation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/traits/noPrivateDelegation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateInterfaceMethod.kt")
|
||||
public void testPrivateInterfaceMethod() throws Exception {
|
||||
@@ -36792,9 +36786,9 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants.kt");
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants2.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+3
-9
@@ -35755,12 +35755,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/traits/multiple.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noPrivateDelegation.kt")
|
||||
public void testNoPrivateDelegation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/traits/noPrivateDelegation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateInterfaceMethod.kt")
|
||||
public void testPrivateInterfaceMethod() throws Exception {
|
||||
@@ -36792,9 +36786,9 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants.kt");
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants2.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+3
-9
@@ -35755,12 +35755,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/traits/multiple.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noPrivateDelegation.kt")
|
||||
public void testNoPrivateDelegation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/traits/noPrivateDelegation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateInterfaceMethod.kt")
|
||||
public void testPrivateInterfaceMethod() throws Exception {
|
||||
@@ -36792,9 +36786,9 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants.kt");
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants2.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+3
-9
@@ -39301,12 +39301,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
runTest("compiler/testData/codegen/box/traits/multiple.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noPrivateDelegation.kt")
|
||||
public void testNoPrivateDelegation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/traits/noPrivateDelegation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateInterfaceMethod.kt")
|
||||
public void testPrivateInterfaceMethod() throws Exception {
|
||||
@@ -40407,9 +40401,9 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants.kt");
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants2.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+3
-9
@@ -40307,12 +40307,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
runTest("compiler/testData/codegen/box/traits/multiple.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noPrivateDelegation.kt")
|
||||
public void testNoPrivateDelegation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/traits/noPrivateDelegation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateInterfaceMethod.kt")
|
||||
public void testPrivateInterfaceMethod() throws Exception {
|
||||
@@ -41439,9 +41433,9 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants.kt");
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants2.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+3
-9
@@ -38799,12 +38799,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/traits/multiple.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noPrivateDelegation.kt")
|
||||
public void testNoPrivateDelegation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/traits/noPrivateDelegation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateInterfaceMethod.kt")
|
||||
public void testPrivateInterfaceMethod() throws Exception {
|
||||
@@ -39892,9 +39886,9 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants.kt");
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants2.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+3
-9
@@ -39302,12 +39302,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/traits/multiple.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noPrivateDelegation.kt")
|
||||
public void testNoPrivateDelegation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/traits/noPrivateDelegation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateInterfaceMethod.kt")
|
||||
public void testPrivateInterfaceMethod() throws Exception {
|
||||
@@ -40408,9 +40402,9 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants.kt");
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants2.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Generated
+3
-8
@@ -31965,11 +31965,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/traits/multiple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noPrivateDelegation.kt")
|
||||
public void testNoPrivateDelegation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/traits/noPrivateDelegation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateInterfaceMethod.kt")
|
||||
public void testPrivateInterfaceMethod() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/traits/privateInterfaceMethod.kt");
|
||||
@@ -32889,9 +32884,9 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/when/inferredTypeParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants.kt");
|
||||
@TestMetadata("integralWhenWithNoInlinedConstants2.kt")
|
||||
public void testIntegralWhenWithNoInlinedConstants2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/integralWhenWithNoInlinedConstants2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("is.kt")
|
||||
|
||||
Reference in New Issue
Block a user