diff options
Diffstat (limited to 'tests/java5/annotations/declare/Temp.java')
-rw-r--r-- | tests/java5/annotations/declare/Temp.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/java5/annotations/declare/Temp.java b/tests/java5/annotations/declare/Temp.java new file mode 100644 index 000000000..c42536610 --- /dev/null +++ b/tests/java5/annotations/declare/Temp.java @@ -0,0 +1,13 @@ +import java.lang.annotation.*; + +enum SimpleEnum { Red,Orange,Yellow,Green,Blue,Indigo,Violet }; + +@Retention(RetentionPolicy.RUNTIME) +@interface AnnotationEnumElement { + SimpleEnum enumval(); +} + + +@AnnotationEnumElement(enumval=SimpleEnum.Red) +class C { +} |