repo.or.cz
/
qtwebkit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Update ReadMe.md
[qtwebkit.git]
/
JSTests
/
microbenchmarks
/
large-int-neg.js
blob
8f4cd23bcdc391371170a6f247e1a54d8a1cd617
1
function foo(x, y) {
2
var z = x;
3
var w = 0;
4
for (var i = 0; i < 3; ++i) {
5
z += y;
6
w = -z;
7
}
8
return w + 1;
9
}
10
11
eval("// Don't compile me");
12
13
var result = 0;
14
15
for (var i = 0; i < 1000000; ++i)
16
result += foo(1000000000, 1000000000);
17
18
if (result != -3999999999000000)
19
throw "Error: bad result: " + result;