Permalink
Browse files

* bug-78653.cs. Makefile.am: Added test for bug 78653.

svn path=/trunk/mono/; revision=61814
  • Loading branch information...
1 parent 6ceeda9 commit 6e01bedfcf7a128598dc51406442bfabd7b8b1dd Massimiliano Mantione committed Jun 16, 2006
Showing with 24 additions and 0 deletions.
  1. +3 −0 mono/tests/ChangeLog
  2. +1 −0 mono/tests/Makefile.am
  3. +20 −0 mono/tests/bug-78653.cs
@@ -1,3 +1,6 @@
+2006-06-16 Massimiliano Mantione <massi@ximian.com>
+ * bug-78653.cs. Makefile.am: Added test for bug 78653.
+
2006-06-13 Massimiliano Mantione <massi@ximian.com>
* test-inline-call-stack.cs: Test also that the order in which
.cctors are run is essentially the same regardless of the status of
@@ -197,6 +197,7 @@ TEST_CS_SRC= \
bug-48015.cs \
bug-42136.cs \
bug-78311.cs \
+ bug-78653.cs \
interlocked.cs \
cross-domain.cs \
appdomain-exit.cs \
@@ -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;
+ }
+ }
+}

0 comments on commit 6e01bed

Please sign in to comment.