update tests
authorMiguel de Icaza <miguel@gnome.org>
Sun, 16 Dec 2001 00:28:03 +0000 (00:28 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Sun, 16 Dec 2001 00:28:03 +0000 (00:28 -0000)
svn path=/trunk/mcs/; revision=1587

mcs/tests/ChangeLog
mcs/tests/test-45.cs

index 0686826021741d3c3736576c052e0052097a6bba..a7afa252088b9323f37a3c2f03474f08beea7663 100755 (executable)
@@ -1,3 +1,9 @@
+2001-12-15  Miguel de Icaza  <miguel@ximian.com>
+
+       * test-45.cs: Make test also use variables as arguments to new;
+       We used to have a bug in the compiler that did not resolve some of
+       the arguments.
+
 2001-12-15  Ravi Pratap  <ravi@ximian.com>
 
        * makefile : Include test-52.cs in the suite, it works fine!
index 5d9f75031ad26e95477e7a6237fde39d24f274b5..508dfa0714ddb8695b2fb5e04b6951201d5ddde4 100644 (file)
@@ -66,7 +66,19 @@ public class Blah {
 
                if (names [0] != "Miguel")
                        return 1;
-               
+
+               int count = 10;
+
+               int [] x = new int [count];
+
+               for (int idx = 0; idx < count; idx++)
+                       x [idx] = idx + 1;
+
+               for (int idx = count; idx > 0; ){
+                       idx--;
+                       if (x [idx] != idx + 1)
+                               return 12;
+               }
                Console.WriteLine ("Array initialization test okay.");
                                   
                return 0;