Proper instructions for elvis operator

We should not mark elvis operator unused, for the rhs may have desired side-effects
This commit is contained in:
Andrey Breslav
2013-12-05 12:51:18 +04:00
parent 3629a539e4
commit 4ca90e9c68
8 changed files with 50 additions and 2 deletions
@@ -142,6 +142,11 @@ public class ControlFlowTestGenerated extends AbstractControlFlowTest {
doTest("compiler/testData/cfg/invoke.kt");
}
@TestMetadata("lastElvis.kt")
public void testLastElvis() throws Exception {
doTest("compiler/testData/cfg/lastElvis.kt");
}
@TestMetadata("LazyBooleans.kt")
public void testLazyBooleans() throws Exception {
doTest("compiler/testData/cfg/LazyBooleans.kt");