test/langtools/tools/javac/switchexpr/WrongBreakTest.java
changeset 59021 cfc7bb9a5a92
parent 55306 ea43db53de91
equal deleted inserted replaced
59020:aebd72de84b0 59021:cfc7bb9a5a92
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 8223305
    26  * @bug 8223305
    27  * @summary Ensure javac is not crashing for wrong breaks.
    27  * @summary Ensure javac is not crashing for wrong breaks.
    28  * @compile/fail/ref=WrongBreakTest.out --enable-preview -source ${jdk.version} -XDrawDiagnostics -XDshould-stop.at=FLOW WrongBreakTest.java
    28  * @compile/fail/ref=WrongBreakTest.out -XDrawDiagnostics -XDshould-stop.at=FLOW WrongBreakTest.java
    29  */
    29  */
    30 
    30 
    31 public class WrongBreakTest {
    31 public class WrongBreakTest {
    32 
    32 
    33     void test(int i) {
    33     void test(int i) {