Regression test for the optimizing compiler that used to crash when compiling (a ? 1 : 0) == 2.