diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ajcTestsFailing.xml | 14 | ||||
-rw-r--r-- | tests/errors/VoidFieldDeclarationCE.java | 8 |
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/ajcTestsFailing.xml b/tests/ajcTestsFailing.xml index c87051140..335649e9d 100644 --- a/tests/ajcTestsFailing.xml +++ b/tests/ajcTestsFailing.xml @@ -65,4 +65,18 @@ <run class="ConstructorDeclaration"/> </ajc-test> + <ajc-test dir="errors" keywords="error" + title="class extending abstract aspect"> + <compile files="ClassExtendingAbstractAspectCE.java"> + <message kind="error" line="20"/> + </compile> + </ajc-test> + + <ajc-test dir="errors" keywords="error" + title="inter-type declaration of void field"> + <compile files="VoidFieldDeclarationCE.java"> + <message kind="error" line="7"/> + </compile> + </ajc-test> + </suite> diff --git a/tests/errors/VoidFieldDeclarationCE.java b/tests/errors/VoidFieldDeclarationCE.java new file mode 100644 index 000000000..58124649e --- /dev/null +++ b/tests/errors/VoidFieldDeclarationCE.java @@ -0,0 +1,8 @@ + +/** @testcase inter-type declaration of void field */ +public class VoidFieldDeclarationCE { +} + +aspect A { + public void VoidFieldDeclarationCE.bug; // CE 46 invalid field type +} |