Author: massi
Date: 2006-06-16 16:37:18 -0400 (Fri, 16 Jun 2006)
New Revision: 61814

Added:
   trunk/mono/mono/tests/bug-78653.cs
Modified:
   trunk/mono/mono/tests/ChangeLog
   trunk/mono/mono/tests/Makefile.am
Log:
        * bug-78653.cs. Makefile.am: Added test for bug 78653.



Modified: trunk/mono/mono/tests/ChangeLog
===================================================================
--- trunk/mono/mono/tests/ChangeLog     2006-06-16 20:35:10 UTC (rev 61813)
+++ trunk/mono/mono/tests/ChangeLog     2006-06-16 20:37:18 UTC (rev 61814)
@@ -1,3 +1,6 @@
+2006-06-16  Massimiliano Mantione  <[EMAIL PROTECTED]>
+       * bug-78653.cs. Makefile.am: Added test for bug 78653.
+
 2006-06-13  Massimiliano Mantione  <[EMAIL PROTECTED]>
        * test-inline-call-stack.cs: Test also that the order in which
        .cctors are run is essentially the same regardless of the status of

Modified: trunk/mono/mono/tests/Makefile.am
===================================================================
--- trunk/mono/mono/tests/Makefile.am   2006-06-16 20:35:10 UTC (rev 61813)
+++ trunk/mono/mono/tests/Makefile.am   2006-06-16 20:37:18 UTC (rev 61814)
@@ -197,6 +197,7 @@
        bug-48015.cs            \
        bug-42136.cs            \
        bug-78311.cs            \
+       bug-78653.cs            \
        interlocked.cs          \
        cross-domain.cs         \
        appdomain-exit.cs       \

Added: trunk/mono/mono/tests/bug-78653.cs
===================================================================
--- trunk/mono/mono/tests/bug-78653.cs  2006-06-16 20:35:10 UTC (rev 61813)
+++ trunk/mono/mono/tests/bug-78653.cs  2006-06-16 20:37:18 UTC (rev 61814)
@@ -0,0 +1,20 @@
+using System;
+
+public class Tests {
+       public static int[] ThrowAnException ()   {
+               int[] arr = new int [10];
+               int k = arr [11];
+               Console.WriteLine ("Test failed");
+               return arr;
+       }
+       public static int Main ( String[] args )   {
+               try {
+                       int[] arr = ThrowAnException ();
+                       Console.WriteLine ("Test failed, really!");
+                       return 1;
+               } catch (Exception e) {
+                       Console.WriteLine ("Test passed");
+                       return 0;
+               }
+       }
+}

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to