aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/DeclareAspectConstructorCE.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/new/DeclareAspectConstructorCE.java')
-rw-r--r--tests/new/DeclareAspectConstructorCE.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/new/DeclareAspectConstructorCE.java b/tests/new/DeclareAspectConstructorCE.java
new file mode 100644
index 000000000..864d5f097
--- /dev/null
+++ b/tests/new/DeclareAspectConstructorCE.java
@@ -0,0 +1,11 @@
+
+
+/** @testcase PR851 declaring an aspect constructor with argument should be prohibited */
+
+aspect A {
+ A() {}
+}
+
+aspect B {
+ A.new(int i) {} // CE 10
+}