Merge pull request #4935 from lambdageek/dev-handles-may
[mono.git] / mcs / tests / test-43.cs
old mode 100755 (executable)
new mode 100644 (file)
index e034171..0af13f1
@@ -61,8 +61,18 @@ class X {
 
                return total;
        }
+
+       static bool test_multi (int [,] d)
+       {
+               int total = 0;
+               
+               foreach (int a in d){
+                       total += a;
+               }
+               return (total == 46);
+       }
        
-       static int Main ()
+       public static int Main ()
        {
                int [] a = new int [10];
                int [] b = new int [2];
@@ -93,6 +103,14 @@ class X {
                if (!test_double (d))
                        return 5;
 
+               int [,] jj = new int [2,2];
+               jj [0,0] = 10;
+               jj [0,1] = 2;
+               jj [1,0] = 30;
+               jj [1,1] = 4;
+               if (!test_multi (jj))
+                       return 6;
+                       
                return 0;
        }
 }