jdk
1/*
2* @test /nodynamiccopyright/
3* @bug 1241001
4* @summary The compiler failed to detect duplicate, nested labels.
5* @author turnidge
6*
7* @compile/fail/ref=NestedDuplicateLabels.out -XDrawDiagnostics NestedDuplicateLabels.java
8*/
9
10class NestedDuplicateLabels {
11void method() {
12foo: { { foo: {} } }
13}
14}
15