blob: 80ebfda5325a58e1b85cea77324df28cddb257a0 [file] [log] [blame]
(function() {
var o = {a:1};
var p = {a:2, l:13};
var q = {a:3, b:3};
var r = {a:4, c:5};
var result = 0;
for (var i = 0; i < 1000000; ++i) {
result ^= o.a;
var tmp = o;
o = p;
p = q;
q = r;
r = tmp;
}
if (result != 0)
throw "Error: bad result: " + result;
})();