New test.
authorMarek Safar <marek.safar@gmail.com>
Wed, 7 May 2008 09:17:17 +0000 (09:17 -0000)
committerMarek Safar <marek.safar@gmail.com>
Wed, 7 May 2008 09:17:17 +0000 (09:17 -0000)
svn path=/trunk/mcs/; revision=102705

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

diff --git a/mcs/tests/gtest-393.cs b/mcs/tests/gtest-393.cs
new file mode 100755 (executable)
index 0000000..17a5d81
--- /dev/null
@@ -0,0 +1,21 @@
+class B<T>
+{
+}
+
+[A(typeof (B<>))]
+public class A : System.Attribute
+{
+       static int ret = 1;
+
+       public A (System.Type type)
+       {
+               if (type == typeof (B<>))
+                       ret = 0;
+       }
+
+       public static int Main ()
+       {
+               typeof (A).GetCustomAttributes (true);
+               return ret;
+       }
+}
\ No newline at end of file
index 897bd6d01725f6328e223ab8f55c2f985d15f8f1..77fa92c2f4cc0bfbc372c47dab3ddc9d333abd63 100644 (file)
       </method>
     </type>
   </test>
+  <test name="gtest-393.cs">
+    <type name="B`1[T]">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+    <type name="A">
+      <method name="Void .ctor(Type)">
+        <size>29</size>
+      </method>
+      <method name="Void .cctor()">
+        <size>7</size>
+      </method>
+      <method name="Int32 Main()">
+        <size>23</size>
+      </method>
+    </type>
+  </test>
   <test name="gtest-anon-1.cs">
     <type name="X">
       <method name="Void .ctor()">