blob: 11e97a6a504a0ac495c53e3035eace4ca3581eec [file] [log] [blame]
//@ skip
var result = 0;
var buffer = new ArrayBuffer(10);
var array1 = new Int32Array(buffer, 4, 1);
var array2 = new Uint32Array(10);
for (var i = 0; i < 1000000; ++i) {
result += array1.byteOffset;
result += array2.byteOffset;
}
if (result != 4000000)
throw "Error: wrong result: " + result;