aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs153
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs153')
-rw-r--r--tests/bugs153/pr154332/Annot.java45
1 files changed, 45 insertions, 0 deletions
diff --git a/tests/bugs153/pr154332/Annot.java b/tests/bugs153/pr154332/Annot.java
new file mode 100644
index 000000000..183c82859
--- /dev/null
+++ b/tests/bugs153/pr154332/Annot.java
@@ -0,0 +1,45 @@
+import java.lang.annotation.*;
+
+@Deprecated @Marker
+
+public aspect Annot {
+
+
+
+ pointcut test() : within(@Marker *);// *);
+
+
+
+ declare warning: staticinitialization(@Deprecated *): "deprecated";
+
+ declare warning: staticinitialization(@Marker *): "marker";
+
+
+
+ public static void main(String argz[]) {
+
+ new Baz().foo();
+
+ }
+
+}
+
+
+
+@Deprecated @Marker
+
+class Baz {
+
+ public void foo() {}
+
+}
+
+
+
+@Retention(RetentionPolicy.RUNTIME)
+
+ @interface Marker {
+
+
+
+} \ No newline at end of file