New test.
authorMarek Safar <marek.safar@gmail.com>
Fri, 14 Aug 2009 13:46:47 +0000 (13:46 -0000)
committerMarek Safar <marek.safar@gmail.com>
Fri, 14 Aug 2009 13:46:47 +0000 (13:46 -0000)
svn path=/trunk/mcs/; revision=139916

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

diff --git a/mcs/tests/gtest-456.cs b/mcs/tests/gtest-456.cs
new file mode 100644 (file)
index 0000000..93c9b41
--- /dev/null
@@ -0,0 +1,24 @@
+using System;
+
+class G<T>
+{
+       public struct S
+       {
+               public string Test ()
+               {
+                       return GetType ().ToString ();
+               }
+       }
+}
+
+class C
+{      
+       public static int Main ()
+       {
+               string s = new G<int>.S ().Test ();
+               if (s != "G`1+S[System.Int32]")
+                       return 1;
+
+               return 0;
+       }
+}
index a45da5b7a7a8b24e6a4b165473a23fd967cd853e..218a6958ec358bd1dcae42c17c98b3d225103d6c 100644 (file)
       </method>
     </type>
   </test>
+  <test name="gtest-456.cs">
+    <type name="G`1[T]">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+    <type name="G`1+S[T]">
+      <method name="System.String Test()">
+        <size>22</size>
+      </method>
+    </type>
+    <type name="C">
+      <method name="Int32 Main()">
+        <size>36</size>
+      </method>
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+  </test>
   <test name="gtest-anon-1.cs">
     <type name="X">
       <method name="Void .ctor()">