diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/codegen/ir/FirBlackBoxCodegenTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/codegen/ir/FirBlackBoxCodegenTestGenerated.java index 14cc6ac517f..f59fdbf70bb 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/codegen/ir/FirBlackBoxCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/codegen/ir/FirBlackBoxCodegenTestGenerated.java @@ -32388,6 +32388,11 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT 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") public void testKt43286() throws Exception { runTest("compiler/testData/codegen/box/unsignedTypes/kt43286.kt"); diff --git a/compiler/testData/codegen/box/unsignedTypes/kt30402.kt b/compiler/testData/codegen/box/unsignedTypes/kt30402.kt new file mode 100644 index 00000000000..8c2e612b4cb --- /dev/null +++ b/compiler/testData/codegen/box/unsignedTypes/kt30402.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" +} \ No newline at end of file diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java index aa9727d8756..06d5a75b64f 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java @@ -32754,6 +32754,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { 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") public void testKt43286() throws Exception { runTest("compiler/testData/codegen/box/unsignedTypes/kt43286.kt"); diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java index d4afe6337ce..af75f58cbae 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java @@ -30280,6 +30280,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) 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 { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/IrBlackBoxCodegenTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/IrBlackBoxCodegenTestGenerated.java index 637ce137d5b..973aed6b420 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/IrBlackBoxCodegenTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/IrBlackBoxCodegenTestGenerated.java @@ -32388,6 +32388,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes 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") public void testKt43286() throws Exception { runTest("compiler/testData/codegen/box/unsignedTypes/kt43286.kt"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java index 5e88c866dd6..2edd845b43e 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java @@ -26199,6 +26199,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes 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") public void testKt43286() throws Exception { runTest("compiler/testData/codegen/box/unsignedTypes/kt43286.kt"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxTestGenerated.java index 6bf98298989..c1f816bd5de 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxTestGenerated.java @@ -26199,6 +26199,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { 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") public void testKt43286() throws Exception { runTest("compiler/testData/codegen/box/unsignedTypes/kt43286.kt"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java index fb64cbbe42e..70cc075d31d 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java @@ -26199,6 +26199,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { 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") public void testKt43286() throws Exception { runTest("compiler/testData/codegen/box/unsignedTypes/kt43286.kt"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java index 5f97f29546a..6bee512e911 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java @@ -14442,6 +14442,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest 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") public void testKt43286() throws Exception { runTest("compiler/testData/codegen/box/unsignedTypes/kt43286.kt");