Minor, add debug stepping test for KT-44745

This commit is contained in:
Alexander Udalov
2021-03-09 21:57:45 +01:00
committed by Space Team
parent 59f9d0afd9
commit 45bf70c9f9
7 changed files with 100 additions and 0 deletions
@@ -139,6 +139,12 @@ public class FirLightTreeSteppingTestGenerated extends AbstractFirLightTreeStepp
runTest("compiler/testData/debug/stepping/constructors.kt");
}
@Test
@TestMetadata("continue.kt")
public void testContinue() throws Exception {
runTest("compiler/testData/debug/stepping/continue.kt");
}
@Test
@TestMetadata("dataClass.kt")
public void testDataClass() throws Exception {
@@ -139,6 +139,12 @@ public class FirPsiSteppingTestGenerated extends AbstractFirPsiSteppingTest {
runTest("compiler/testData/debug/stepping/constructors.kt");
}
@Test
@TestMetadata("continue.kt")
public void testContinue() throws Exception {
runTest("compiler/testData/debug/stepping/continue.kt");
}
@Test
@TestMetadata("dataClass.kt")
public void testDataClass() throws Exception {
+64
View File
@@ -0,0 +1,64 @@
// WITH_STDLIB
// FILE: test.kt
val strings = arrayOf("1a", "1b", "2", "3")
fun box() {
for (s in strings) {
if (s == "1a" || s == "1b") {
continue
}
if (s == "2") {
continue
}
println(s)
}
}
// EXPECTATIONS JVM JVM_IR
// test.kt:7 box
// test.kt:8 box
// test.kt:9 box
// test.kt:7 box
// test.kt:8 box
// test.kt:9 box
// test.kt:7 box
// test.kt:8 box
// test.kt:11 box
// test.kt:12 box
// test.kt:7 box
// test.kt:8 box
// test.kt:11 box
// test.kt:14 box
// test.kt:7 box
// test.kt:16 box
// EXPECTATIONS JS_IR
// test.kt:7 box
// test.kt:4 <get-strings>
// test.kt:7 box
// test.kt:7 box
// test.kt:7 box
// test.kt:7 box
// test.kt:7 box
// test.kt:8 box
// test.kt:9 box
// test.kt:7 box
// test.kt:7 box
// test.kt:7 box
// test.kt:8 box
// test.kt:9 box
// test.kt:7 box
// test.kt:7 box
// test.kt:7 box
// test.kt:8 box
// test.kt:11 box
// test.kt:12 box
// test.kt:7 box
// test.kt:7 box
// test.kt:7 box
// test.kt:8 box
// test.kt:11 box
// test.kt:14 box
// test.kt:7 box
// test.kt:16 box
@@ -139,6 +139,12 @@ public class IrSteppingWithBytecodeInlinerTestGenerated extends AbstractIrSteppi
runTest("compiler/testData/debug/stepping/constructors.kt");
}
@Test
@TestMetadata("continue.kt")
public void testContinue() throws Exception {
runTest("compiler/testData/debug/stepping/continue.kt");
}
@Test
@TestMetadata("dataClass.kt")
public void testDataClass() throws Exception {
@@ -139,6 +139,12 @@ public class IrSteppingWithIrInlinerTestGenerated extends AbstractIrSteppingWith
runTest("compiler/testData/debug/stepping/constructors.kt");
}
@Test
@TestMetadata("continue.kt")
public void testContinue() throws Exception {
runTest("compiler/testData/debug/stepping/continue.kt");
}
@Test
@TestMetadata("dataClass.kt")
public void testDataClass() throws Exception {
@@ -139,6 +139,12 @@ public class SteppingTestGenerated extends AbstractSteppingTest {
runTest("compiler/testData/debug/stepping/constructors.kt");
}
@Test
@TestMetadata("continue.kt")
public void testContinue() throws Exception {
runTest("compiler/testData/debug/stepping/continue.kt");
}
@Test
@TestMetadata("dataClass.kt")
public void testDataClass() throws Exception {
@@ -139,6 +139,12 @@ public class IrJsSteppingTestGenerated extends AbstractIrJsSteppingTest {
runTest("compiler/testData/debug/stepping/constructors.kt");
}
@Test
@TestMetadata("continue.kt")
public void testContinue() throws Exception {
runTest("compiler/testData/debug/stepping/continue.kt");
}
@Test
@TestMetadata("dataClass.kt")
public void testDataClass() throws Exception {