Files
why3/bench/java/expected/ExceptionCatch.java
2024-10-02 11:28:58 +02:00

21 lines
470 B
Java

/* This file has been extracted from module ExceptionCatch. */
import java.util.NoSuchElementException;
public class ExceptionCatch {
public static int noRaise(int i) throws Exception1 {
try {
return ExceptionThrow.func(i);
} catch (IndexOutOfBoundsException eX) {
return i;
} catch (NoSuchElementException eX) {
return i;
}
catch (Exception2 us) {
throw new RuntimeException("unreachable statement");
}
}
}