summaryrefslogtreecommitdiff
path: root/js/src/jit-test/tests/basic/testDivision.js
blob: 52f3d9557a01f73273955209b846a37a43a6fd3f (plain)
1
2
3
4
5
6
7
8
9
10
function testDivision() {
    var a = 32768;
    var b;
    while (b !== 1) {
        b = a / 2;
        a = b;
    }
    return a;
}
assertEq(testDivision(), 1);