langtools/test/tools/javac/LabeledDeclaration.java
author duke
Wed, 05 Jul 2017 23:01:50 +0200
changeset 44228 e46434c65a2b
parent 26993 513b2cae81c3
permissions -rw-r--r--
Merge

/*
 * @test  /nodynamiccopyright/
 * @bug 4039843 8057652
 * @summary The compiler should not allow labeled declarations.
 * @author turnidge
 *
 * @compile/fail/ref=LabeledDeclaration.out -XDrawDiagnostics  LabeledDeclaration.java
 */

class LabeledDeclaration {
    void method() {
    foo: int i = 111;
    }
}