Author: massi
Date: 2006-10-31 05:23:30 -0500 (Tue, 31 Oct 2006)
New Revision: 67174

Added:
   trunk/mono/mono/tests/bug-79684.2.cs
Modified:
   trunk/mono/mono/tests/ChangeLog
   trunk/mono/mono/tests/Makefile.am
Log:
        * bug-79684.2.cs, Makefile.am: Added test for bug 79684.



Modified: trunk/mono/mono/tests/ChangeLog
===================================================================
--- trunk/mono/mono/tests/ChangeLog     2006-10-31 04:01:04 UTC (rev 67173)
+++ trunk/mono/mono/tests/ChangeLog     2006-10-31 10:23:30 UTC (rev 67174)
@@ -1,3 +1,6 @@
+2006-10-31  Massimiliano Mantione  <[EMAIL PROTECTED]>
+       * bug-79684.2.cs, Makefile.am: Added test for bug 79684.
+
 2006-10-20  Jonathan Chambers  <[EMAIL PROTECTED]>
 
        * cominterop.cs: Added more tests for Variant.

Modified: trunk/mono/mono/tests/Makefile.am
===================================================================
--- trunk/mono/mono/tests/Makefile.am   2006-10-31 04:01:04 UTC (rev 67173)
+++ trunk/mono/mono/tests/Makefile.am   2006-10-31 10:23:30 UTC (rev 67174)
@@ -259,7 +259,7 @@
        test-enum-indstoreil.il \
        even-odd.il
 
-TEST_CS2_SRC = interlocked-2.2.cs pinvoke-2.2.cs
+TEST_CS2_SRC = interlocked-2.2.cs pinvoke-2.2.cs bug-79684.2.cs
 TEST_IL2_SRC = find-method.2.il
 
 TESTSI_CS=$(TEST_CS_SRC:.cs=.exe)

Added: trunk/mono/mono/tests/bug-79684.2.cs
===================================================================
--- trunk/mono/mono/tests/bug-79684.2.cs        2006-10-31 04:01:04 UTC (rev 
67173)
+++ trunk/mono/mono/tests/bug-79684.2.cs        2006-10-31 10:23:30 UTC (rev 
67174)
@@ -0,0 +1,19 @@
+using System;
+using System.Reflection;
+
+namespace Tests
+{
+       public class Test
+       {
+               const BindingFlags flags = BindingFlags.FlattenHierarchy | 
BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | 
BindingFlags.Static;
+               public static int Main()
+               {
+                       foreach (MethodInfo m in 
typeof(Type[]).GetMethods(flags)) {
+                               if (m.Name == 
"System.Collections.Generic.IList`1.IndexOf")     {
+                                       
Console.WriteLine(m.GetParameters().Length);
+                               }
+                       }
+                       return 0;
+               }
+       }
+}

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

Reply via email to