2008-06-24 Marek Safar <marek.safar@gmail.com>
authorMarek Safar <marek.safar@gmail.com>
Tue, 24 Jun 2008 23:29:28 +0000 (23:29 -0000)
committerMarek Safar <marek.safar@gmail.com>
Tue, 24 Jun 2008 23:29:28 +0000 (23:29 -0000)
A test for bug #394826

svn path=/trunk/mcs/; revision=106553

mcs/tests/gtest-anon-type-09.cs [new file with mode: 0644]
mcs/tests/ver-il-gmcs.xml

diff --git a/mcs/tests/gtest-anon-type-09.cs b/mcs/tests/gtest-anon-type-09.cs
new file mode 100644 (file)
index 0000000..2d52541
--- /dev/null
@@ -0,0 +1,13 @@
+using System;
+
+namespace My.System
+{
+       static class Test
+       {
+       public static void Main ()
+           {
+           var a = new { X = 1 };
+               Console.WriteLine(a);
+           }
+       }
+}
index e67f12c745563e53aac2a2ec3c323d150f7ce2be..5619b6058b949927a66fa2b9060de7bc2cb2d5a9 100644 (file)
       </method>
     </type>
   </test>
+  <test name="gtest-anon-type-09.cs">
+    <type name="My.System.Test">
+      <method name="Void Main()">
+        <size>14</size>
+      </method>
+    </type>
+    <type name="&lt;&gt;__AnonType0`1[&lt;X&gt;__T]">
+      <method name="Void .ctor(&lt;X&gt;__T)">
+        <size>14</size>
+      </method>
+      <method name="&lt;X&gt;__T get_X()">
+        <size>7</size>
+      </method>
+      <method name="Boolean Equals(System.Object)">
+        <size>39</size>
+      </method>
+      <method name="Int32 GetHashCode()">
+        <size>78</size>
+      </method>
+      <method name="System.String ToString()">
+        <size>57</size>
+      </method>
+    </type>
+  </test>
   <test name="gtest-anontype-01.cs">
     <type name="Test">
       <method name="Void .ctor()">