svn path=/trunk/mcs/; revision=1587
+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!
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;