test/langtools/tools/javac/switchextra/MultipleLabelsStatement.java
changeset 53023 6879069d9d94
parent 51563 de411d537aae
child 53878 4584d0331318
equal deleted inserted replaced
53022:ece620f32d2d 53023:6879069d9d94
     1 /*
     1 /*
     2  * @test /nodynamiccopyright/
     2  * @test /nodynamiccopyright/
     3  * @bug 8206986
     3  * @bug 8206986
     4  * @summary Verify cases with multiple labels work properly.
     4  * @summary Verify cases with multiple labels work properly.
     5  * @compile/fail/ref=MultipleLabelsStatement-old.out -source 9 -Xlint:-options -XDrawDiagnostics MultipleLabelsStatement.java
     5  * @compile/fail/ref=MultipleLabelsStatement-old.out -source 9 -Xlint:-options -XDrawDiagnostics MultipleLabelsStatement.java
     6  * @compile --enable-preview -source 12 MultipleLabelsStatement.java
     6  * @compile --enable-preview -source 13 MultipleLabelsStatement.java
     7  * @run main/othervm --enable-preview MultipleLabelsStatement
     7  * @run main/othervm --enable-preview MultipleLabelsStatement
     8  */
     8  */
     9 
     9 
    10 import java.util.Objects;
    10 import java.util.Objects;
    11 import java.util.function.Function;
    11 import java.util.function.Function;