Add tests on variable spilling with debug mode enabled

#KT-48678 Fixed
This commit is contained in:
Nikita Nazarov
2022-06-29 18:45:34 +03:00
committed by Nikita Nazarov
parent 38d97d0621
commit 65bb6abae4
20 changed files with 710 additions and 0 deletions
@@ -13227,6 +13227,64 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/coroutines/varSpilling/cleanup/when.kt");
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/coroutines/varSpilling/debugMode")
@TestDataPath("$PROJECT_ROOT")
public class DebugMode {
@Test
public void testAllFilesPresentInDebugMode() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/varSpilling/debugMode"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
@Test
@TestMetadata("backEdge.kt")
public void testBackEdge() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/backEdge.kt");
}
@Test
@TestMetadata("if.kt")
public void testIf() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/if.kt");
}
@Test
@TestMetadata("nullCleanup.kt")
public void testNullCleanup() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/nullCleanup.kt");
}
@Test
@TestMetadata("nullNotSpill.kt")
public void testNullNotSpill() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/nullNotSpill.kt");
}
@Test
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/simple.kt");
}
@Test
@TestMetadata("twoRefs.kt")
public void testTwoRefs() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/twoRefs.kt");
}
@Test
@TestMetadata("unusedParamNotSpill.kt")
public void testUnusedParamNotSpill() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/unusedParamNotSpill.kt");
}
@Test
@TestMetadata("when.kt")
public void testWhen() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/varSpilling/debugMode/when.kt");
}
}
}
}