Prohibit from eliminating non-local temporary variables

This commit is contained in:
Alexey Andreev
2016-03-22 13:48:41 +03:00
parent af7ddb4572
commit 8709289b0a
9 changed files with 93 additions and 4 deletions
@@ -24,4 +24,6 @@ class TemporaryAssignmentEliminationTest : BasicOptimizerTest("temporary-assignm
@Test fun returnStatement() = box()
@Test fun declaration() = box()
@Test fun skipsGlobalDeclarations() = box()
}
@@ -22,4 +22,6 @@ class TemporaryVariableEliminationTest : BasicOptimizerTest("temporary-variable"
@Test fun declaration() = box()
@Test fun assignment() = box()
@Test fun skipsGlobalDeclarations() = box()
}