Author: zoltan
Date: 2005-12-13 17:01:44 -0500 (Tue, 13 Dec 2005)
New Revision: 54326

Modified:
   trunk/mcs/class/corlib/Test/System/ArrayTest.cs
   trunk/mcs/class/corlib/Test/System/ChangeLog
Log:
2005-12-13  Zoltan Varga  <[EMAIL PROTECTED]>

        * ArrayTest.cs: Add regression test for #76973.


Modified: trunk/mcs/class/corlib/Test/System/ArrayTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System/ArrayTest.cs     2005-12-13 21:59:59 UTC 
(rev 54325)
+++ trunk/mcs/class/corlib/Test/System/ArrayTest.cs     2005-12-13 22:01:44 UTC 
(rev 54326)
@@ -686,6 +686,11 @@
                                AssertEquals("#F13(" + i + ")", src[i], 
array.GetValue(i+5));
                }
 
+               // Test that a 1 dimensional array with 0 lower bound is the
+               // same as an szarray
+               Type szarrayType = new int [10].GetType ();
+               Assert (szarrayType == (Array.CreateInstance (typeof (int), new 
int[] {1}, new int[] {0})).GetType ());
+               Assert (szarrayType != (Array.CreateInstance (typeof (int), new 
int[] {1}, new int[] {1})).GetType ());
        }
        
        [Test]

Modified: trunk/mcs/class/corlib/Test/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System/ChangeLog        2005-12-13 21:59:59 UTC 
(rev 54325)
+++ trunk/mcs/class/corlib/Test/System/ChangeLog        2005-12-13 22:01:44 UTC 
(rev 54326)
@@ -1,3 +1,7 @@
+2005-12-13  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * ArrayTest.cs: Add regression test for #76973.
+
 2005-12-13  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * DoubleTest.cs : added test for bug #75228.

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to