Don't add unused label if variables are absent

This commit is contained in:
Mikhael Bogdanov
2019-11-15 14:47:46 +01:00
parent be3eed5f1f
commit 8adac2d1ea
4 changed files with 29 additions and 1 deletions
@@ -1650,6 +1650,11 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
public void testNoUnitInstanceOnVoidFunctionCall() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/disabledOptimizations/noUnitInstanceOnVoidFunctionCall.kt");
}
@TestMetadata("noUnusedLabel.kt")
public void testNoUnusedLabel() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/disabledOptimizations/noUnusedLabel.kt");
}
}
@TestMetadata("compiler/testData/codegen/bytecodeText/enum")