4 public static int[] ThrowAnException () {
5 int[] arr = new int [10];
7 Console.WriteLine ("Test failed");
10 public static int Main ( String[] args ) {
12 int[] arr = ThrowAnException ();
13 Console.WriteLine ("Test failed, really!");
15 } catch (Exception e) {
16 Console.WriteLine ("Test passed");