aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/UnterminatedDeclareErrorCE.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/new/UnterminatedDeclareErrorCE.java')
-rw-r--r--tests/new/UnterminatedDeclareErrorCE.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/new/UnterminatedDeclareErrorCE.java b/tests/new/UnterminatedDeclareErrorCE.java
new file mode 100644
index 000000000..ad4f228be
--- /dev/null
+++ b/tests/new/UnterminatedDeclareErrorCE.java
@@ -0,0 +1,11 @@
+
+/** @testcase expect CE for unterminated declare error */
+aspect UnterminatedDeclareErrorCE {
+ declare error : execution(void run()) : "error" // CE 7
+}
+
+class C {
+ // bug - get CE here if uncommented, but declare error unterminated
+ // public void run() { }
+}
+