aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr59196.aj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs150/pr59196.aj')
-rw-r--r--tests/bugs150/pr59196.aj18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/bugs150/pr59196.aj b/tests/bugs150/pr59196.aj
new file mode 100644
index 000000000..f54d98097
--- /dev/null
+++ b/tests/bugs150/pr59196.aj
@@ -0,0 +1,18 @@
+aspect some_aspect {
+ pointcut call_m(int a, int b) : call(int *.m(..)) && args(a, b);
+
+ int m(int p, int q) { return 2; }
+
+ void foo() {
+ m(1,4);
+ }
+
+ int around(int x, int y) : call_m(x, y) { return 5; }
+}
+
+aspect other_aspect {
+ before(int x, int y) :
+ adviceexecution() && within(some_aspect) && args(x, y) {
+
+ }
+} \ No newline at end of file