aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features160/annotationValueMatching/ErrorOne.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/features160/annotationValueMatching/ErrorOne.java')
-rw-r--r--tests/features160/annotationValueMatching/ErrorOne.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/features160/annotationValueMatching/ErrorOne.java b/tests/features160/annotationValueMatching/ErrorOne.java
new file mode 100644
index 000000000..aae8074d5
--- /dev/null
+++ b/tests/features160/annotationValueMatching/ErrorOne.java
@@ -0,0 +1,16 @@
+import java.lang.annotation.*;
+
+public class ErrorOne {
+ public static void main(String[] args) { }
+}
+
+@interface Anno {
+ float fval();
+}
+
+enum Color { RED,GREEN,BLUE };
+
+// Non existent value of the annotation!
+aspect X {
+ before(): execution(@Anno(ival=Color.GREEN) * *(..)) {}
+}