mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-27 05:54:38 +02:00
15 lines
384 B
Java
15 lines
384 B
Java
|
|
import org.aspectj.testing.Tester;
|
|
|
|
public class Driver {
|
|
volatile static boolean completed = true;
|
|
public static void main(String[] args) { test(); }
|
|
public static void test() {
|
|
Tester.check(completed, "static volatile filed");
|
|
Tester.check(new C().completed, "instance of volatile filed");
|
|
}
|
|
}
|
|
|
|
class C {
|
|
volatile boolean completed = true;
|
|
} |