New test.
authorMarek Safar <marek.safar@gmail.com>
Wed, 7 May 2008 10:41:39 +0000 (10:41 -0000)
committerMarek Safar <marek.safar@gmail.com>
Wed, 7 May 2008 10:41:39 +0000 (10:41 -0000)
svn path=/trunk/mcs/; revision=102709

mcs/tests/gtest-394.cs [new file with mode: 0755]
mcs/tests/ver-il-gmcs.xml

diff --git a/mcs/tests/gtest-394.cs b/mcs/tests/gtest-394.cs
new file mode 100755 (executable)
index 0000000..90d6b0d
--- /dev/null
@@ -0,0 +1,14 @@
+public class Test
+{
+       public delegate bool MemberFilter ();
+       public static void FindMembers (MemberFilter filter) { }
+       public static void GetMethodGroup (MemberFilter filter)
+       {
+               FindMembers (filter ?? delegate () {
+                       return true;
+               });
+       }
+
+       public static void Main () { }
+}
+
index 77fa92c2f4cc0bfbc372c47dab3ddc9d333abd63..7fbc3fb4778ee2db30423b72d75d28769a829b9e 100644 (file)
       </method>
     </type>
   </test>
+  <test name="gtest-394.cs">
+    <type name="Test">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+      <method name="Void FindMembers(Test+MemberFilter)">
+        <size>1</size>
+      </method>
+      <method name="Void GetMethodGroup(Test+MemberFilter)">
+        <size>40</size>
+      </method>
+      <method name="Void Main()">
+        <size>1</size>
+      </method>
+    </type>
+    <type name="Test+&lt;&gt;c__CompilerGenerated0">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+      <method name="Boolean &lt;GetMethodGroup&gt;c__1()">
+        <size>4</size>
+      </method>
+    </type>
+    <type name="Test+MemberFilter">
+      <method name="Void .ctor(Object, IntPtr)">
+        <size>0</size>
+      </method>
+      <method name="Boolean Invoke()">
+        <size>0</size>
+      </method>
+      <method name="IAsyncResult BeginInvoke(System.AsyncCallback, System.Object)">
+        <size>0</size>
+      </method>
+      <method name="Boolean EndInvoke(IAsyncResult)">
+        <size>0</size>
+      </method>
+    </type>
+  </test>
   <test name="gtest-anon-1.cs">
     <type name="X">
       <method name="Void .ctor()">