* bug-59286.cs, Makefile.am: Added test for bug 59286.
authorMassimiliano Mantione <massi@mono-cvs.ximian.com>
Tue, 6 Feb 2007 15:49:20 +0000 (15:49 -0000)
committerMassimiliano Mantione <massi@mono-cvs.ximian.com>
Tue, 6 Feb 2007 15:49:20 +0000 (15:49 -0000)
svn path=/trunk/mono/; revision=72358

mono/tests/ChangeLog
mono/tests/Makefile.am
mono/tests/bug-59286.cs [new file with mode: 0644]

index 1d635531f9afd88f24f92bfc1ae469925e3ec929..4d3f78116ca426ea6834dcb34eaa12eb95bf881f 100644 (file)
@@ -1,3 +1,6 @@
+2007-02-06  Massimiliano Mantione  <massi@ximian.com>
+       * bug-59286.cs, Makefile.am: Added test for bug 59286.
+
 2007-02-03  Zoltan Varga  <vargaz@gmail.com>
 
        * interlocked-2.2.cs: Fix long tests and add Interlocked.Exchange(long) test.
index 27d836a1e443f0465094421fdf0d3dd6f5ab003e..90d9a81064a3aadc4e154e0d8512e00f745a9051 100644 (file)
@@ -202,6 +202,7 @@ TEST_CS_SRC=                        \
        bug-46781.cs            \
        bug-48015.cs            \
        bug-42136.cs            \
+       bug-59286.cs            \
        bug-70561.cs            \
        bug-78311.cs            \
        bug-78653.cs            \
diff --git a/mono/tests/bug-59286.cs b/mono/tests/bug-59286.cs
new file mode 100644 (file)
index 0000000..c040191
--- /dev/null
@@ -0,0 +1,11 @@
+using System;
+
+class A : T {}
+class T {
+       static int Main ()
+       {
+               object o = (T [][]) (object) (new A [][] {});
+               return o.GetHashCode () - o.GetHashCode ();
+       }
+}
+