aboutsummaryrefslogtreecommitdiffstats
path: root/tests/pureJava/Flow.java
blob: ddd11c3b9ce193fc342b3160ca6e68ac72cceba4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import org.aspectj.testing.Tester;

public class Flow {
    public static void main(String[] args) {
        Tester.checkEqual(m(), 42, "m()");
        Tester.checkEqual(n(), 42, "n()");
    }

    static int m() {
        if (true) return 42;
        return 3;
    }

    static int n() {
        { if(true) return 42; }
        return 4;
    }
}