diff options
Diffstat (limited to 'tests/bugs/AbstractPointcutCE.java')
-rw-r--r-- | tests/bugs/AbstractPointcutCE.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/bugs/AbstractPointcutCE.java b/tests/bugs/AbstractPointcutCE.java new file mode 100644 index 000000000..898a72b0a --- /dev/null +++ b/tests/bugs/AbstractPointcutCE.java @@ -0,0 +1,16 @@ + + +/** @testcase PR#40814 compile error expected for pointcuts in interfaces + * revised to check for error on abstract pointcuts in interfaces or classes + **/ +interface I { + abstract pointcut pc(); // CE +} + +abstract class C { + abstract pointcut pc(); // CE +} + +class Concrete { + abstract pointcut pc(); // CE +} |