summaryrefslogtreecommitdiffstats
path: root/tests/errors/AspectInheritance1.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errors/AspectInheritance1.java')
-rw-r--r--tests/errors/AspectInheritance1.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/errors/AspectInheritance1.java b/tests/errors/AspectInheritance1.java
new file mode 100644
index 000000000..18413139f
--- /dev/null
+++ b/tests/errors/AspectInheritance1.java
@@ -0,0 +1,20 @@
+public class AspectInheritance1 {
+ public static void main(String[] args) {
+ }
+}
+
+
+abstract aspect Base {
+ abstract pointcut targets(int i, C c);
+
+ after(int i, C c): targets(i, c) {
+ //
+ }
+}
+
+aspect EmptyConcrete extends Base {
+ // this would match everything, but we declare it a syntax error
+ pointcut targets(int i, C c): ;
+}
+
+class C {}