JVM additional DCE tests
This commit is contained in:
committed by
TeamCityServer
parent
6d364a5fee
commit
1f8d6d6edb
+6
@@ -8100,6 +8100,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/controlStructures/quicksort.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tcbInEliminatedCondition.kt")
|
||||
public void testTcbInEliminatedCondition() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/tcbInEliminatedCondition.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tryCatchExpression.kt")
|
||||
public void testTryCatchExpression() throws Exception {
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
|
||||
fun foo() {}
|
||||
|
||||
inline fun test1(v: Int) {
|
||||
if (v == 0) {
|
||||
try {
|
||||
foo()
|
||||
} catch (e: Exception) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
inline fun test2(v: Int) {
|
||||
try {
|
||||
if (v == 0) {
|
||||
foo()
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
}
|
||||
}
|
||||
|
||||
inline fun test3(v: Boolean) {
|
||||
if (v) {
|
||||
try {
|
||||
foo()
|
||||
} catch (e: Exception) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
inline fun test4(v: Boolean) {
|
||||
try {
|
||||
if (v) {
|
||||
foo()
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
test1(1)
|
||||
test2(1)
|
||||
test3(false)
|
||||
test4(false)
|
||||
return "OK"
|
||||
}
|
||||
+6
@@ -8100,6 +8100,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/quicksort.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tcbInEliminatedCondition.kt")
|
||||
public void testTcbInEliminatedCondition() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/tcbInEliminatedCondition.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tryCatchExpression.kt")
|
||||
public void testTryCatchExpression() throws Exception {
|
||||
|
||||
+6
@@ -8100,6 +8100,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/controlStructures/quicksort.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tcbInEliminatedCondition.kt")
|
||||
public void testTcbInEliminatedCondition() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/tcbInEliminatedCondition.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("tryCatchExpression.kt")
|
||||
public void testTryCatchExpression() throws Exception {
|
||||
|
||||
+5
@@ -6207,6 +6207,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/controlStructures/quicksort.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("tcbInEliminatedCondition.kt")
|
||||
public void testTcbInEliminatedCondition() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/tcbInEliminatedCondition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("tryCatchExpression.kt")
|
||||
public void testTryCatchExpression() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchExpression.kt");
|
||||
|
||||
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java
Generated
+5
@@ -5456,6 +5456,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/controlStructures/quicksort.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("tcbInEliminatedCondition.kt")
|
||||
public void testTcbInEliminatedCondition() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/tcbInEliminatedCondition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("tryCatchExpression.kt")
|
||||
public void testTryCatchExpression() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchExpression.kt");
|
||||
|
||||
Generated
+5
@@ -4862,6 +4862,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/quicksort.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("tcbInEliminatedCondition.kt")
|
||||
public void testTcbInEliminatedCondition() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/tcbInEliminatedCondition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("tryCatchExpression.kt")
|
||||
public void testTryCatchExpression() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchExpression.kt");
|
||||
|
||||
Generated
+5
@@ -4862,6 +4862,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/quicksort.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("tcbInEliminatedCondition.kt")
|
||||
public void testTcbInEliminatedCondition() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/tcbInEliminatedCondition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("tryCatchExpression.kt")
|
||||
public void testTryCatchExpression() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchExpression.kt");
|
||||
|
||||
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java
Generated
+5
@@ -3445,6 +3445,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/controlStructures/quicksort.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("tcbInEliminatedCondition.kt")
|
||||
public void testTcbInEliminatedCondition() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/tcbInEliminatedCondition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("tryCatchExpression.kt")
|
||||
public void testTryCatchExpression() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchExpression.kt");
|
||||
|
||||
Reference in New Issue
Block a user