aboutsummaryrefslogtreecommitdiff
path: root/test/swftests/LocalVars.as
blob: b2911a9f3ee65bb6295e1cbaaaf24b8dfbaa01c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// input: [1, 2]
// output: 3

package {
public class LocalVars {
    public static function main(a:int, b:int):int{
        var c:int = a + b + b;
        var d:int = c - b;
        var e:int = d;
        return e;
    }
}
}