blob: ac900caf94c8404b9da1403b61337a0c0901b7ea [file]
class C {
String foo(int n) {
switch (n) {
case 1:
throw new IllegalArgumentException("A");
case 2:
throw new IllegalStateException("A");
case 3:
<weak_warning descr="Duplicate branch in 'switch'">throw new IllegalArgumentException("A");</weak_warning>
}
return "";
}
}