New test.
authorMarek Safar <marek.safar@gmail.com>
Thu, 17 Apr 2008 11:14:05 +0000 (11:14 -0000)
committerMarek Safar <marek.safar@gmail.com>
Thu, 17 Apr 2008 11:14:05 +0000 (11:14 -0000)
svn path=/trunk/mcs/; revision=100974

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

diff --git a/mcs/tests/gtest-384.cs b/mcs/tests/gtest-384.cs
new file mode 100644 (file)
index 0000000..a8eb40a
--- /dev/null
@@ -0,0 +1,32 @@
+namespace N
+{
+       public class TestG
+       {
+               public static void Foo<T> ()
+               {
+               }
+       }
+}
+
+class NonGeneric { }
+class Generic<T> { }
+
+class m
+{
+       public global::NonGeneric compiles_fine (global::NonGeneric i, out global::NonGeneric o)
+       {
+               o = new global::NonGeneric ();
+               return new global::NonGeneric ();
+       }
+
+       public global::Generic<int> does_not_compile (global::Generic<int> i, out global::Generic<int> o)
+       {
+               o = new global::Generic<int> ();
+               return new global::Generic<int> ();
+       }
+
+       public static void Main ()
+       {
+               global::N.TestG.Foo<int> ();
+       }
+}
index 3ac6aa9de873338f3d4d9a868f14fd425f05e6f1..7100732a5d5cd1336dcdf97dfd66edfa9d10a2fe 100644 (file)
       </method>
     </type>
   </test>
+  <test name="gtest-384.cs">
+    <type name="N.TestG">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+      <method name="Void Foo[T]()">
+        <size>1</size>
+      </method>
+    </type>
+    <type name="NonGeneric">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+    <type name="Generic`1[T]">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+    <type name="m">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+      <method name="NonGeneric compiles_fine(NonGeneric, NonGeneric ByRef)">
+        <size>13</size>
+      </method>
+      <method name="Generic`1[System.Int32] does_not_compile(Generic`1[System.Int32], Generic`1[System.Int32] ByRef)">
+        <size>13</size>
+      </method>
+      <method name="Void Main()">
+        <size>6</size>
+      </method>
+    </type>
+  </test>
   <test name="gtest-anon-1.cs">
     <type name="X">
       <method name="Void .ctor()">