blob: 86e47460a165af860254a1bcd5d4f97b74d68528 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
function g() { }
g();
function f(a, g) {
var x;
if (a) {
x = 12;
print(a);
x = a + 19;
} else {
x = 20 + a;
g(a);
x += a;
}
return a + x + 12;
}
assertEq(f(0, g), 32);
|