2004-09-24 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mono / mini / arrays.cs
index 1a200c37885aa4ac293e1049731ff02fa78a03f2..cf31e02a7e42753e2674666f5d1a3c40245aeabc 100644 (file)
@@ -93,7 +93,7 @@ class Tests {
        }
 
        /* Regression test for #30073 */
-       public static test_0_newarr_emulation () {
+       public static int test_0_newarr_emulation () {
                double d = 500;
                checked {
                        double [] arr = new double [(int)d];
@@ -156,5 +156,36 @@ class Tests {
                helper1 h = new helper1 ();
                return 2;
        }
+       
+       public static int test_0_stelemref_1 () {
+               object [] o = new object [1];
+               o [0] = null;
+               
+               return 0;
+       }
+       
+       public static int test_0_stelemref_2 () {
+               object [] o = new object [1];
+               o [0] = 1;
+               
+               return 0;
+       }
+       
+       interface IFace {}
+       class Face : IFace {}
+       
+       public static int test_0_stelemref_3 () {
+               object [] o = new IFace [1];
+               o [0] = new Face ();
+               
+               return 0;
+       }
+       
+       public static int test_0_stelemref_4 () {
+               object [][] o = new object [5] [];
+               o [0] = new object [5];
+               
+               return 0;
+       }
 }