aboutsummaryrefslogtreecommitdiffstats
path: root/test/swftests/NeOperator.as
blob: 61dcbc4e9ad2a10830680a9813b740c7c3e8a610 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// input: []
// output: 123

package {
public class NeOperator {
    public static function main(): int {
        var res:int = 0;
        if (1 != 2) {
            res += 3;
        } else {
            res += 4;
        }
        if (2 != 2) {
            res += 10;
        } else {
            res += 20;
        }
        if (9 == 9) {
            res += 100;
        }
        return res;
    }
}
}