New test.
authorMarek Safar <marek.safar@gmail.com>
Mon, 4 Aug 2008 11:52:26 +0000 (11:52 -0000)
committerMarek Safar <marek.safar@gmail.com>
Mon, 4 Aug 2008 11:52:26 +0000 (11:52 -0000)
svn path=/trunk/mcs/; revision=109550

mcs/tests/test-anon-84.cs [new file with mode: 0755]
mcs/tests/ver-il-gmcs.xml

diff --git a/mcs/tests/test-anon-84.cs b/mcs/tests/test-anon-84.cs
new file mode 100755 (executable)
index 0000000..6667002
--- /dev/null
@@ -0,0 +1,25 @@
+using System;
+
+public delegate C D (int i);
+
+public class C
+{
+       private readonly D field = delegate {
+               int x = 0;
+               return null;
+       };
+
+       public C ()
+       {
+       }
+
+       public C (D onMissing)
+       {
+       }
+
+       public static int Main ()
+       {
+               new C ().field (3);
+               return 0;
+       }
+}
index 2ea92f8ff58cd5a3902d168042c29abcc457c57a..f156fee0837ca0bf60a92ccf289d09d3faa696a3 100644 (file)
       </method>
     </type>
   </test>
+  <test name="test-anon-84.cs">
+    <type name="C">
+      <method name="Void .ctor()">
+        <size>42</size>
+      </method>
+      <method name="Void .ctor(D)">
+        <size>42</size>
+      </method>
+      <method name="Int32 Main()">
+        <size>19</size>
+      </method>
+      <method name="C &lt;C&gt;m__0(Int32)">
+        <size>4</size>
+      </method>
+    </type>
+    <type name="D">
+      <method name="Void .ctor(Object, IntPtr)">
+        <size>0</size>
+      </method>
+      <method name="C Invoke(Int32)">
+        <size>0</size>
+      </method>
+      <method name="IAsyncResult BeginInvoke(Int32, System.AsyncCallback, System.Object)">
+        <size>0</size>
+      </method>
+      <method name="C EndInvoke(IAsyncResult)">
+        <size>0</size>
+      </method>
+    </type>
+  </test>
   <test name="test-cls-00.cs">
     <type name="CLSCLass_6">
       <method name="Void .ctor()">