]>
Commit | Line | Data |
---|---|---|
81345200 A |
1 | var False = false; |
2 | ||
3 | function foo(p, array) { | |
4 | var result = 0; | |
5 | var i = 0; | |
6 | if (array.length) { | |
7 | if (p) { | |
8 | } else { | |
9 | return; | |
10 | } | |
11 | do { | |
12 | result += array[i++]; | |
13 | } while (False); | |
14 | } | |
15 | return result; | |
16 | } | |
17 | ||
18 | noInline(foo); | |
19 | ||
20 | for (var i = 0; i < 1000000; ++i) { | |
21 | var result = foo(true, [42]); | |
22 | if (result != 42) | |
23 | throw "Error: bad result: " + result; | |
24 | } |