summaryrefslogtreecommitdiffstats
path: root/tests/bugs/ExecutionCflow.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/ExecutionCflow.java')
-rw-r--r--tests/bugs/ExecutionCflow.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/bugs/ExecutionCflow.java b/tests/bugs/ExecutionCflow.java
new file mode 100644
index 000000000..ac72b44a4
--- /dev/null
+++ b/tests/bugs/ExecutionCflow.java
@@ -0,0 +1,22 @@
+
+import org.aspectj.testing.Tester;
+import java.util.*;
+
+/** @testcase PR#903 cflow of execution */
+public class ExecutionCflow {
+
+ static int field;
+
+ public static void main(String[] args) {
+ field = 0;
+ Tester.expectEvent("before");
+ Tester.checkAllEvents();
+ }
+}
+
+aspect A {
+ before() : cflow(execution(static void main(String[])))
+ && set(int field) {
+ Tester.event("before");
+ }
+}