Fix for KT-11964: No TABLESWITCH in when on enum bytecode if enum constant is imported

#KT-11964 Fixed
This commit is contained in:
Michael Bogdanov
2016-06-26 19:13:23 +03:00
parent 81ec18e1fc
commit 3b419e8ba3
10 changed files with 31 additions and 8 deletions
@@ -1429,6 +1429,12 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
doTest(fileName);
}
@TestMetadata("importedEnumEntry.kt")
public void testImportedEnumEntry() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/whenEnumOptimization/importedEnumEntry.kt");
doTest(fileName);
}
@TestMetadata("manyWhensWithinClass.kt")
public void testManyWhensWithinClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/whenEnumOptimization/manyWhensWithinClass.kt");