1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 var if0 = (function Module() {
10 if (i == 0 ? j == 0 : 0) return 1;
15 assertEquals(1, if0(0, 0));
16 assertEquals(0, if0(11, 0));
17 assertEquals(0, if0(0, -1));
18 assertEquals(0, if0(-1024, 1));
21 var if1 = (function Module() {
26 if (i == 0 ? j == 0 : 1) return 0;
31 assertEquals(0, if1(0, 0));
32 assertEquals(0, if1(11, 0));
33 assertEquals(1, if1(0, -1));
34 assertEquals(0, if1(-1024, 9));