diff options
Diffstat (limited to 'tests/pureJava/Flow.java')
-rw-r--r-- | tests/pureJava/Flow.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/pureJava/Flow.java b/tests/pureJava/Flow.java new file mode 100644 index 000000000..ddd11c3b9 --- /dev/null +++ b/tests/pureJava/Flow.java @@ -0,0 +1,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; + } +} |