1/*
2 * @test /nodynamiccopyright/
3 * @bug 6843077 8006775
4 * @summary test invalid location of TypeUse
5 * @author Mahmood Ali
6 * @compile/fail/ref=NotTypeUse.out -XDrawDiagnostics NotTypeUse.java
7 */
8
9import java.lang.annotation.Target;
10import java.lang.annotation.ElementType;
11
12class VoidMethod {
13  @A void test() { }
14}
15
16@Target(ElementType.TYPE)
17@interface A { }
18