JVM box tests for KT-30402
This commit is contained in:
Generated
+5
@@ -32388,6 +32388,11 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
|||||||
runTest("compiler/testData/codegen/box/unsignedTypes/kt25784.kt");
|
runTest("compiler/testData/codegen/box/unsignedTypes/kt25784.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt30402.kt")
|
||||||
|
public void testKt30402() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/unsignedTypes/kt30402.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt43286.kt")
|
@TestMetadata("kt43286.kt")
|
||||||
public void testKt43286() throws Exception {
|
public void testKt43286() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/unsignedTypes/kt43286.kt");
|
runTest("compiler/testData/codegen/box/unsignedTypes/kt43286.kt");
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
// WITH_RUNTIME
|
||||||
|
// IGNORE_BACKEND: JVM
|
||||||
|
// IGNORE_BACKEND: JS_IR
|
||||||
|
// IGNORE_LIGHT_ANALYSIS
|
||||||
|
|
||||||
|
val unsigned = 0x8fffffffU
|
||||||
|
val good = "123 " + unsigned
|
||||||
|
val bad = "123 " + 0x8fffffffU
|
||||||
|
|
||||||
|
fun box(): String {
|
||||||
|
if (good != "123 2415919103") return "good: '$good'"
|
||||||
|
if (bad != "123 2415919103") return "bad: '$bad'"
|
||||||
|
return "OK"
|
||||||
|
}
|
||||||
+5
@@ -32754,6 +32754,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
|||||||
runTest("compiler/testData/codegen/box/unsignedTypes/kt25784.kt");
|
runTest("compiler/testData/codegen/box/unsignedTypes/kt25784.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt30402.kt")
|
||||||
|
public void testKt30402() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/unsignedTypes/kt30402.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt43286.kt")
|
@TestMetadata("kt43286.kt")
|
||||||
public void testKt43286() throws Exception {
|
public void testKt43286() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/unsignedTypes/kt43286.kt");
|
runTest("compiler/testData/codegen/box/unsignedTypes/kt43286.kt");
|
||||||
|
|||||||
+5
@@ -30280,6 +30280,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
|||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
@RunWith(JUnit3RunnerWithInners.class)
|
@RunWith(JUnit3RunnerWithInners.class)
|
||||||
public static class UnsignedTypes extends AbstractLightAnalysisModeTest {
|
public static class UnsignedTypes extends AbstractLightAnalysisModeTest {
|
||||||
|
@TestMetadata("kt30402.kt")
|
||||||
|
public void ignoreKt30402() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/unsignedTypes/kt30402.kt");
|
||||||
|
}
|
||||||
|
|
||||||
private void runTest(String testDataFilePath) throws Exception {
|
private void runTest(String testDataFilePath) throws Exception {
|
||||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||||
}
|
}
|
||||||
|
|||||||
+5
@@ -32388,6 +32388,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
|||||||
runTest("compiler/testData/codegen/box/unsignedTypes/kt25784.kt");
|
runTest("compiler/testData/codegen/box/unsignedTypes/kt25784.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt30402.kt")
|
||||||
|
public void testKt30402() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/unsignedTypes/kt30402.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt43286.kt")
|
@TestMetadata("kt43286.kt")
|
||||||
public void testKt43286() throws Exception {
|
public void testKt43286() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/unsignedTypes/kt43286.kt");
|
runTest("compiler/testData/codegen/box/unsignedTypes/kt43286.kt");
|
||||||
|
|||||||
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java
Generated
+5
@@ -26199,6 +26199,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
|||||||
runTest("compiler/testData/codegen/box/unsignedTypes/kt25784.kt");
|
runTest("compiler/testData/codegen/box/unsignedTypes/kt25784.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt30402.kt")
|
||||||
|
public void testKt30402() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/unsignedTypes/kt30402.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt43286.kt")
|
@TestMetadata("kt43286.kt")
|
||||||
public void testKt43286() throws Exception {
|
public void testKt43286() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/unsignedTypes/kt43286.kt");
|
runTest("compiler/testData/codegen/box/unsignedTypes/kt43286.kt");
|
||||||
|
|||||||
Generated
+5
@@ -26199,6 +26199,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
|||||||
runTest("compiler/testData/codegen/box/unsignedTypes/kt25784.kt");
|
runTest("compiler/testData/codegen/box/unsignedTypes/kt25784.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt30402.kt")
|
||||||
|
public void testKt30402() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/unsignedTypes/kt30402.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt43286.kt")
|
@TestMetadata("kt43286.kt")
|
||||||
public void testKt43286() throws Exception {
|
public void testKt43286() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/unsignedTypes/kt43286.kt");
|
runTest("compiler/testData/codegen/box/unsignedTypes/kt43286.kt");
|
||||||
|
|||||||
Generated
+5
@@ -26199,6 +26199,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
|||||||
runTest("compiler/testData/codegen/box/unsignedTypes/kt25784.kt");
|
runTest("compiler/testData/codegen/box/unsignedTypes/kt25784.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt30402.kt")
|
||||||
|
public void testKt30402() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/unsignedTypes/kt30402.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt43286.kt")
|
@TestMetadata("kt43286.kt")
|
||||||
public void testKt43286() throws Exception {
|
public void testKt43286() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/unsignedTypes/kt43286.kt");
|
runTest("compiler/testData/codegen/box/unsignedTypes/kt43286.kt");
|
||||||
|
|||||||
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java
Generated
+5
@@ -14442,6 +14442,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
|||||||
runTest("compiler/testData/codegen/box/unsignedTypes/iterateOverListOfBoxedUnsignedValues.kt");
|
runTest("compiler/testData/codegen/box/unsignedTypes/iterateOverListOfBoxedUnsignedValues.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt30402.kt")
|
||||||
|
public void testKt30402() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/unsignedTypes/kt30402.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt43286.kt")
|
@TestMetadata("kt43286.kt")
|
||||||
public void testKt43286() throws Exception {
|
public void testKt43286() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/unsignedTypes/kt43286.kt");
|
runTest("compiler/testData/codegen/box/unsignedTypes/kt43286.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user