update readme (#21797)
[mono-project.git] / mono / tests / bug-78653.cs
blobea85883a660a45ae6a412de2cf119ecbdc78ad7b
1 using System;
3 public class Tests {
4 public static int[] ThrowAnException () {
5 int[] arr = new int [10];
6 int k = arr [11];
7 Console.WriteLine ("Test failed");
8 return arr;
10 public static int Main ( String[] args ) {
11 try {
12 int[] arr = ThrowAnException ();
13 Console.WriteLine ("Test failed, really!");
14 return 1;
15 } catch (Exception e) {
16 Console.WriteLine ("Test passed");
17 return 0;