aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs164
diff options
context:
space:
mode:
authoraclement <aclement>2009-02-18 21:05:02 +0000
committeraclement <aclement>2009-02-18 21:05:02 +0000
commitb6d5f319a101d120450a6bb6f9d5d2f91b41021c (patch)
tree69ba80fbbe6cf21cd2df87bae9ebab8dfb91109d /tests/bugs164
parentcb5091bcd8e4bec3e6a2b370c936f46f03320113 (diff)
downloadaspectj-b6d5f319a101d120450a6bb6f9d5d2f91b41021c.tar.gz
aspectj-b6d5f319a101d120450a6bb6f9d5d2f91b41021c.zip
233032: test for dual clinits
Diffstat (limited to 'tests/bugs164')
-rw-r--r--tests/bugs164/pr233032/A.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/bugs164/pr233032/A.java b/tests/bugs164/pr233032/A.java
new file mode 100644
index 000000000..6ec8c5ff2
--- /dev/null
+++ b/tests/bugs164/pr233032/A.java
@@ -0,0 +1,21 @@
+import org.aspectj.lang.*;
+import org.aspectj.lang.annotation.*;
+
+@Aspect("percflow(within(C))")
+public class A {
+
+ @Before("execution(* foo(..)) && cflow(execution(* bar(..)) && this(o))")
+ public void m(Object o) {}
+
+ public static void main(String[] argv) {
+ new C().bar();
+ }
+
+}
+
+class C {
+ public void bar() {
+ foo();
+ }
+ public void foo() {}
+}