From abc061e17f273bba97e94f41a4e3194a29aeb957 Mon Sep 17 00:00:00 2001 From: Ivan Kylchik Date: Mon, 4 Sep 2023 16:07:48 +0200 Subject: [PATCH] [IR] Restore and fix `ifConstVal` test It was accidentally dropped after KT-55196 fix. --- .../fir/analysis/checkers/FirConstChecks.kt | 5 +- ...LightTreeBlackBoxCodegenTestGenerated.java | 6 +++ ...hIrFakeOverrideGeneratorTestGenerated.java | 6 +++ .../FirPsiBlackBoxCodegenTestGenerated.java | 6 +++ .../intrinsicConst/ifConstVal.kt | 24 ++++++++++ .../tests/modifiers/const/equals_after.fir.kt | 46 +++++++++++++++++++ .../tests/modifiers/const/equals_after.kt | 1 - .../modifiers/const/ifConstVal_after.fir.kt | 8 ++-- .../IrBlackBoxCodegenTestGenerated.java | 6 +++ ...kBoxCodegenWithIrInlinerTestGenerated.java | 6 +++ .../LightAnalysisModeTestGenerated.java | 5 ++ .../fir/FirJsCodegenBoxTestGenerated.java | 6 +++ .../fir/FirJsES6CodegenBoxTestGenerated.java | 6 +++ .../test/ir/IrJsCodegenBoxTestGenerated.java | 6 +++ .../ir/IrJsES6CodegenBoxTestGenerated.java | 6 +++ .../FirNativeCodegenBoxTestGenerated.java | 6 +++ .../FirNativeCodegenBoxTestNoPLGenerated.java | 6 +++ .../NativeCodegenBoxTestGenerated.java | 6 +++ .../NativeCodegenBoxTestNoPLGenerated.java | 6 +++ 19 files changed, 161 insertions(+), 6 deletions(-) create mode 100644 compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/ifConstVal.kt create mode 100644 compiler/testData/diagnostics/tests/modifiers/const/equals_after.fir.kt diff --git a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/FirConstChecks.kt b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/FirConstChecks.kt index 3d352213d06..6db0acbcae0 100644 --- a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/FirConstChecks.kt +++ b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/FirConstChecks.kt @@ -194,7 +194,10 @@ private fun FirExpression.isForbiddenComplexConstant(session: FirSession): Boole val forbidComplexBooleanExpressions = session.languageVersionSettings.supportsFeature( LanguageFeature.ProhibitSimplificationOfNonTrivialConstBooleanExpressions ) - return isComplexBooleanConstant && forbidComplexBooleanExpressions + val intrinsicConstEvaluation = session.languageVersionSettings.supportsFeature( + LanguageFeature.IntrinsicConstEvaluation + ) + return !intrinsicConstEvaluation && forbidComplexBooleanExpressions && isComplexBooleanConstant } private val FirExpression.isComplexBooleanConstant diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java index 836d5ffc8e0..0d50850e9d5 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java @@ -29170,6 +29170,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/equals_after.kt"); } + @Test + @TestMetadata("ifConstVal.kt") + public void testIfConstVal() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/ifConstVal.kt"); + } + @Test @TestMetadata("kCallableName.kt") public void testKCallableName() throws Exception { diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated.java index 8091c360b18..af6f43612ce 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated.java @@ -29170,6 +29170,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/equals_after.kt"); } + @Test + @TestMetadata("ifConstVal.kt") + public void testIfConstVal() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/ifConstVal.kt"); + } + @Test @TestMetadata("kCallableName.kt") public void testKCallableName() throws Exception { diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java index 10cb55ee4a0..049e794c156 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java @@ -29170,6 +29170,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/equals_after.kt"); } + @Test + @TestMetadata("ifConstVal.kt") + public void testIfConstVal() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/ifConstVal.kt"); + } + @Test @TestMetadata("kCallableName.kt") public void testKCallableName() throws Exception { diff --git a/compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/ifConstVal.kt b/compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/ifConstVal.kt new file mode 100644 index 00000000000..0ba3ce769ef --- /dev/null +++ b/compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/ifConstVal.kt @@ -0,0 +1,24 @@ +// !LANGUAGE: +IntrinsicConstEvaluation +// TARGET_BACKEND: JVM_IR +// TARGET_BACKEND: JS_IR +// TARGET_BACKEND: NATIVE +// IGNORE_BACKEND_K1: JVM_IR, JS_IR, JS_IR_ES6, NATIVE +fun T.id() = this + +const val flag = true +const val value = 10 +const val condition = if (flag) "True" else "Error" +const val withWhen = when (flag) { true -> "True"; else -> "Error" } +const val withWhen2 = when { flag == true -> "True"; else -> "Error" } +const val withWhen3 = when(value) { 10 -> "1"; 100 -> "2"; else -> "3" } +const val multibranchIf = if (value == 100) 1 else if (value == 1000) 2 else 3 + +// STOP_EVALUATION_CHECKS +fun box(): String { + if (condition.id() != "True") return "Fail 1" + if (withWhen.id() != "True") return "Fail 2" + if (withWhen2.id() != "True") return "Fail 3" + if (withWhen3.id() != "1") return "Fail 4" + if (multibranchIf.id() != 3) return "Fail 5" + return "OK" +} diff --git a/compiler/testData/diagnostics/tests/modifiers/const/equals_after.fir.kt b/compiler/testData/diagnostics/tests/modifiers/const/equals_after.fir.kt new file mode 100644 index 00000000000..cd60c7ac823 --- /dev/null +++ b/compiler/testData/diagnostics/tests/modifiers/const/equals_after.fir.kt @@ -0,0 +1,46 @@ +// !LANGUAGE: +IntrinsicConstEvaluation + +const val equalsBoolean1 = true.equals(true) +const val equalsBoolean2 = false != true +const val equalsBoolean3 = false.equals(1) +const val equalsBoolean4 = false == 1 + +const val equalsChar1 = '1'.equals('2') +const val equalsChar2 = '2' == '2' +const val equalsChar3 = '1'.equals(1) +const val equalsChar4 = '1' == 1 + +const val equalsByte1 = 1.toByte().equals(2.toByte()) +const val equalsByte2 = 2.toByte() == 2.toByte() +const val equalsByte3 = 1.toByte().equals("1") +const val equalsByte4 = 1.toByte() == "1" + +const val equalsShort1 = 1.toShort().equals(2.toShort()) +const val equalsShort2 = 2.toShort() == 2.toShort() +const val equalsShort3 = 1.toShort().equals("1") +const val equalsShort4 = 1.toShort() == "1" + +const val equalsInt1 = 1.equals(2) +const val equalsInt2 = 2 == 2 +const val equalsInt3 = 1.equals("1") +const val equalsInt4 = 1 == "1" + +const val equalsLong1 = 1L.equals(2L) +const val equalsLong2 = 2L == 2L +const val equalsLong3 = 1L.equals("1") +const val equalsLong4 = 1L == "1" + +const val equalsFloat1 = 1.0f.equals(2.0f) +const val equalsFloat2 = 2.0f == 2.0f +const val equalsFloat3 = 1.0f.equals("1") +const val equalsFloat4 = 1.0f == "1" + +const val equalsDoable1 = 1.0.equals(2.0) +const val equalsDoable2 = 2.0 == 2.0 +const val equalsDoable3 = 1.0.equals("1") +const val equalsDoable4 = 1.0 == "1" + +const val equalsString1 = "someStr".equals("123") +const val equalsString2 = "someStr" == "otherStr" +const val equalsString3 = "someStr".equals(1) +const val equalsString4 = "someStr" == 1 diff --git a/compiler/testData/diagnostics/tests/modifiers/const/equals_after.kt b/compiler/testData/diagnostics/tests/modifiers/const/equals_after.kt index b0a3c0167cf..45a6371cc49 100644 --- a/compiler/testData/diagnostics/tests/modifiers/const/equals_after.kt +++ b/compiler/testData/diagnostics/tests/modifiers/const/equals_after.kt @@ -1,4 +1,3 @@ -// FIR_IDENTICAL // !LANGUAGE: +IntrinsicConstEvaluation const val equalsBoolean1 = true.equals(true) diff --git a/compiler/testData/diagnostics/tests/modifiers/const/ifConstVal_after.fir.kt b/compiler/testData/diagnostics/tests/modifiers/const/ifConstVal_after.fir.kt index b58c69dd3e5..af6049a21a9 100644 --- a/compiler/testData/diagnostics/tests/modifiers/const/ifConstVal_after.fir.kt +++ b/compiler/testData/diagnostics/tests/modifiers/const/ifConstVal_after.fir.kt @@ -4,19 +4,19 @@ const val flag = true const val value = 10 const val condition = if (flag) "True" else "Error" -const val withWhen = when (flag) { +const val withWhen = when (flag) { true -> "True" else -> "Error" -} +} const val withWhen2 = when { flag == true -> "True" else -> "Error" } -const val withWhen3 = when(value) { +const val withWhen3 = when(value) { 10 -> "1" 100 -> "2" else -> "3" -} +} const val multibranchIf = if (value == 100) 1 else if (value == 1000) 2 else 3 val nonConstFlag = true diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java index 6c08609a108..315eee97b3d 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java @@ -29170,6 +29170,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/equals_after.kt"); } + @Test + @TestMetadata("ifConstVal.kt") + public void testIfConstVal() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/ifConstVal.kt"); + } + @Test @TestMetadata("kCallableName.kt") public void testKCallableName() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java index dc2414a7e11..d2174df9da3 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java @@ -29170,6 +29170,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/equals_after.kt"); } + @Test + @TestMetadata("ifConstVal.kt") + public void testIfConstVal() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/ifConstVal.kt"); + } + @Test @TestMetadata("kCallableName.kt") public void testKCallableName() throws Exception { diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java index 08e32ae4648..66c93fdba2c 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java @@ -24614,6 +24614,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/enumName.kt"); } + @TestMetadata("ifConstVal.kt") + public void ignoreIfConstVal() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/ifConstVal.kt"); + } + @TestMetadata("kCallableName.kt") public void ignoreKCallableName() throws Exception { runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/kCallableName.kt"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java index d03142b1987..7d3b7851359 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java @@ -21652,6 +21652,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/equals_after.kt"); } + @Test + @TestMetadata("ifConstVal.kt") + public void testIfConstVal() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/ifConstVal.kt"); + } + @Test @TestMetadata("kCallableName.kt") public void testKCallableName() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenBoxTestGenerated.java index f73cd045c0b..53cb1f458b2 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenBoxTestGenerated.java @@ -21652,6 +21652,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/equals_after.kt"); } + @Test + @TestMetadata("ifConstVal.kt") + public void testIfConstVal() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/ifConstVal.kt"); + } + @Test @TestMetadata("kCallableName.kt") public void testKCallableName() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java index 694d7d5fa01..04a42e2e9a6 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java @@ -21652,6 +21652,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/equals_after.kt"); } + @Test + @TestMetadata("ifConstVal.kt") + public void testIfConstVal() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/ifConstVal.kt"); + } + @Test @TestMetadata("kCallableName.kt") public void testKCallableName() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java index 3cc11d65027..744ae66e5df 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java @@ -21652,6 +21652,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/equals_after.kt"); } + @Test + @TestMetadata("ifConstVal.kt") + public void testIfConstVal() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/ifConstVal.kt"); + } + @Test @TestMetadata("kCallableName.kt") public void testKCallableName() throws Exception { diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/FirNativeCodegenBoxTestGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/FirNativeCodegenBoxTestGenerated.java index 4b8252caa61..3aecad84210 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/FirNativeCodegenBoxTestGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/FirNativeCodegenBoxTestGenerated.java @@ -24483,6 +24483,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/equals_after.kt"); } + @Test + @TestMetadata("ifConstVal.kt") + public void testIfConstVal() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/ifConstVal.kt"); + } + @Test @TestMetadata("kCallableName.kt") public void testKCallableName() throws Exception { diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/FirNativeCodegenBoxTestNoPLGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/FirNativeCodegenBoxTestNoPLGenerated.java index 5ad380bfdb7..442be8281c2 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/FirNativeCodegenBoxTestNoPLGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/FirNativeCodegenBoxTestNoPLGenerated.java @@ -24963,6 +24963,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/equals_after.kt"); } + @Test + @TestMetadata("ifConstVal.kt") + public void testIfConstVal() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/ifConstVal.kt"); + } + @Test @TestMetadata("kCallableName.kt") public void testKCallableName() throws Exception { diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java index 2a260a24e24..82bbe0199a3 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java @@ -24244,6 +24244,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/equals_after.kt"); } + @Test + @TestMetadata("ifConstVal.kt") + public void testIfConstVal() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/ifConstVal.kt"); + } + @Test @TestMetadata("kCallableName.kt") public void testKCallableName() throws Exception { diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestNoPLGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestNoPLGenerated.java index 0da02ea7c46..ff97f7c4766 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestNoPLGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestNoPLGenerated.java @@ -24484,6 +24484,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/equals_after.kt"); } + @Test + @TestMetadata("ifConstVal.kt") + public void testIfConstVal() throws Exception { + runTest("compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/ifConstVal.kt"); + } + @Test @TestMetadata("kCallableName.kt") public void testKCallableName() throws Exception {