blob: 5c2906c41919911dfdeab83b85c8b2271d4416d5 [file] [log] [blame]
/*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/licenses/publicdomain/
*/
if (!this.hasOwnProperty("TypedObject"))
quit();
var Vec3u32Type = TypedObject.uint32.array(3);
function foo_u32() {
for (var i = 0; i < 30000; i += 3) {
var vec = new Vec3u32Type([i, i+1, i+2]);
var sum = vec[0] + vec[1] + vec[2];
assertEq(sum, 3*i + 3);
}
}
foo_u32();