Align libgc vcxproj with makefile.
[mono.git] / mono / tests / bug-78653.cs
1 using System;
2
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;
9         }
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;
18                 }
19         }
20 }