summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug862100.js
blob: 4ba973c040f5b4fe30d2960ff804a54207bcb294 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function TestCase(n, d, e, a) {}
function reportCompare (expected, actual, description) {
  new TestCase("", description, expected, actual);
}
new TestCase( "", "", 0, Number(new Number()) );
reportCompare(true, true);
evaluate("\
function TestCase(n, d, e, a) {}\
test_negation(-2147483648, 2147483648);\
test_negation(2147483647, -2147483647);\
function test_negation(value, expected) {\
    reportCompare(expected, '', '-(' + value + ') == ' + expected);\
}");