* bug-79684.2.cs, Makefile.am: Added test for bug 79684.
authorMassimiliano Mantione <massi@mono-cvs.ximian.com>
Tue, 31 Oct 2006 10:23:30 +0000 (10:23 -0000)
committerMassimiliano Mantione <massi@mono-cvs.ximian.com>
Tue, 31 Oct 2006 10:23:30 +0000 (10:23 -0000)
svn path=/trunk/mono/; revision=67174

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

index 3ec2a164699b930f4f641697470a40aebf0bf085..b585a2dddf5efb91b683f8c76d661c10130a2e28 100644 (file)
@@ -1,3 +1,6 @@
+2006-10-31  Massimiliano Mantione  <massi@ximian.com>
+       * bug-79684.2.cs, Makefile.am: Added test for bug 79684.
+
 2006-10-20  Jonathan Chambers  <joncham@gmail.com>
 
        * cominterop.cs: Added more tests for Variant.
index 236258fdcdf6e6dd46f6ca964bb01d7db595b231..06506a23b517e949e3d24f553e33f4b2f07f2bd0 100644 (file)
@@ -259,7 +259,7 @@ TEST_IL_SRC=                        \
        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)
diff --git a/mono/tests/bug-79684.2.cs b/mono/tests/bug-79684.2.cs
new file mode 100644 (file)
index 0000000..7e12072
--- /dev/null
@@ -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;
+               }
+       }
+}