mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-07 03:06:19 +02:00
8312dfbc60
moved passing tests from ajcTestsFailing to ajcTests
23 lines
409 B
Java
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");
|
|
}
|
|
}
|