summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/features1611/metamatching/Code.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/features1611/metamatching/Code.java b/tests/features1611/metamatching/Code.java
new file mode 100644
index 000000000..9111ed897
--- /dev/null
+++ b/tests/features1611/metamatching/Code.java
@@ -0,0 +1,19 @@
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+@interface Meta {}
+
+@Retention(RetentionPolicy.RUNTIME)
+@Meta
+@interface Foo {}
+
+public class Code {
+
+ @Foo
+ public void m() {}
+}
+aspect X {
+ before(): execution(@@Meta * *(..)) {
+ }
+}
+