New tests.
authorMarek Safar <marek.safar@gmail.com>
Fri, 18 Jun 2010 07:20:25 +0000 (07:20 -0000)
committerMarek Safar <marek.safar@gmail.com>
Fri, 18 Jun 2010 07:20:25 +0000 (07:20 -0000)
svn path=/trunk/mcs/; revision=159121

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

diff --git a/mcs/tests/gtest-518.cs b/mcs/tests/gtest-518.cs
new file mode 100644 (file)
index 0000000..cbbfeb2
--- /dev/null
@@ -0,0 +1,22 @@
+class Top<X>
+{
+       public class C : I1<int>
+       {
+       }
+
+       interface I1<T> : I2<T>
+       {
+       }
+
+       interface I2<U>
+       {
+       }
+}
+
+class M
+{
+       public static int Main ()
+       {
+               return 0;
+       }
+}
\ No newline at end of file
diff --git a/mcs/tests/gtest-519.cs b/mcs/tests/gtest-519.cs
new file mode 100644 (file)
index 0000000..a571012
--- /dev/null
@@ -0,0 +1,19 @@
+class G<T>
+{
+}
+
+interface I
+{
+       void Foo<T> () where T : G<T>;
+}
+
+class A : I
+{
+       public void Foo<U> () where U : G<U>
+       {
+       }
+
+       public static void Main ()
+       {
+       }
+}
\ No newline at end of file
index 6b346fcfddc883c4ba7dbe265583fcdb3c4dc818..c3a303ab7cc26c9981f1e169a6e5796cf748af22 100644 (file)
       </method>
     </type>
   </test>
+  <test name="gtest-518.cs">
+    <type name="Top`1[X]">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+    <type name="Top`1+C[X]">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+    <type name="M">
+      <method name="Int32 Main()">
+        <size>2</size>
+      </method>
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+  </test>
+  <test name="gtest-519.cs">
+    <type name="G`1[T]">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+    <type name="A">
+      <method name="Void Foo[U]()">
+        <size>1</size>
+      </method>
+      <method name="Void Main()">
+        <size>1</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()">
       </method>
     </type>
   </test>
+  <test name="gtest-named-02.cs">
+    <type name="D">
+      <method name="Void Foo(Int32)">
+        <size>1</size>
+      </method>
+      <method name="Void Main()">
+        <size>1</size>
+      </method>
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+  </test>
   <test name="gtest-optional-01.cs">
     <type name="C">
       <method name="Void TestA(Int32)">
       </method>
     </type>
   </test>
+  <test name="test-783.cs">
+    <type name="C">
+      <method name="Void Main()">
+        <size>25</size>
+      </method>
+      <method name="Void M(E)">
+        <size>1</size>
+      </method>
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+  </test>
   <test name="test-79.cs">
     <type name="X">
       <method name="Void .ctor()">