org.aspectj/tests/bugs/ExecutionCflow.java
wisberg 8312dfbc60 added test cases for old jitterbugs
moved passing tests from ajcTestsFailing to ajcTests
2002-12-20 04:54:45 +00:00

23 lines
409 B
Java

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");
}
}