blob: 5ddc2d72660a119bf3e37ad7ae319051d8428b84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
function testFloatArray() {
var v = new Float32Array(32);
for (var i = 0; i < v.length; ++i)
v[i] = i;
var t = 0;
for (var i = 0; i < v.length; ++i)
t += v[i];
return t;
}
assertEq(testFloatArray(), 496);
|