js/src/jit-test/tests/basic/testContinueWithLabel.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/basic/testContinueWithLabel.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,16 @@
     1.4 +function testContinueWithLabel() {
     1.5 +    var i = 0;
     1.6 +    var j = 20;
     1.7 +    checkiandj :
     1.8 +    while (i < 10) {
     1.9 +        i += 1;
    1.10 +        checkj :
    1.11 +        while (j > 10) {
    1.12 +            j -= 1;
    1.13 +            if ((j % 2) == 0)
    1.14 +            continue checkj;
    1.15 +        }
    1.16 +    }
    1.17 +    return i + j;
    1.18 +}
    1.19 +assertEq(testContinueWithLabel(), 20);

mercurial