summaryrefslogtreecommitdiff
path: root/test/files/jvm/bytecode-test-example.flags
Commit message (Collapse)AuthorAgeFilesLines
* SI-8601 Don't treat newarray as dead codeLukas Rytz2016-01-241-0/+1
Otherwise we lose the side effect of a `NegativeArraySizeException`. A test for this case already exists (run/t8601b.scala), but it currently enforces `-optimize -Ybackend:GenASM`, so it didn't trigger on the new backend. However, PR #4814 was merged into 2.12.x and moved that test over to the new backend and optimizer. After merging the 2.12.x into the current optimizer branch (push-pop elimination), the test started failing. Also disable the optimizer for `jvm/bytecode-test-example`: it counts the number of null checks in a method, the optimizer (rightly) eliminates one of the two.