Add test that checks arrays
authorMiguel de Icaza <miguel@gnome.org>
Wed, 14 Nov 2001 02:14:57 +0000 (02:14 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Wed, 14 Nov 2001 02:14:57 +0000 (02:14 -0000)
svn path=/trunk/mcs/; revision=1348

mcs/tests/test-42.cs

index 4e4d2c83b047cdad1ba3af541e4ee4e98f11305c..10d4558c960a6e5374826e31e9a8344d1d7c8b79 100755 (executable)
@@ -106,6 +106,21 @@ class Y {
                        return 4;
                return 0;
        }
+
+       static int arrays ()
+       {
+               int [] a = new int [10];
+               int i;
+               
+               for (i = 0; i < 10; i++)
+                       a [i]++;
+
+               for (i = 0; i < 10; i++)
+                       if (a [i] != 1)
+                               return 100;
+               return 0;
+       }
+       
        static int Main ()
        {
                X x = new X ();
@@ -142,6 +157,8 @@ class Y {
 
                overload_increment (z);
 
+               arrays ();
+               
                return 0;
        }