MIPS: Throw OverflowException if Int32.MinValue is divided by -1
[mono.git] / mono / mini / arrays.cs
index 65606e0d2b2e90403dbe9a77d332055f0d5095ef..b1f91172321f48a6eeb57e8ab740d764048f4b5a 100644 (file)
@@ -434,6 +434,14 @@ class Tests {
                if (sum != 1800)
                        return 12;
 
+               /* Null check */
+               object[,] a13 = null;
+               try {
+                       a13 [0, 0] = new Object ();
+                       return 13;
+               } catch (NullReferenceException) {
+               }
+
                return 0;
        }