blob: ed767a7a2a6427224cae48fd9dc95e910531c31a [file] [log] [blame]
function testModuloWithNegative1() {
var v = 0;
for (var i = 0; i < 2; ++i) {
c = v;
v -= 1;
for (var j = 0; j < 2; ++j)
c %= -1;
}
return 1/c;
}
assertEq(testModuloWithNegative1(), -Infinity);