1 /*
 2  * @test /nodynamiccopyright/
 3  * @summary Check inlineness via __inline__ annotation
 4  * @bug 8222745
 5  * @compile/fail/ref=InlineAnnotationOnAnonymousClass.out -XDrawDiagnostics InlineAnnotationOnAnonymousClass.java
 6  */
 7 
 8 class InlineAnnotationOnAnonymousClass {
 9     interface I {}
10     @__primitive__
11     public static void main(String args []) {
12         new @__primitive__ I() {
13         };
14     }
15 }