New tests.
authorMarek Safar <marek.safar@gmail.com>
Wed, 14 Jul 2010 13:57:14 +0000 (13:57 -0000)
committerMarek Safar <marek.safar@gmail.com>
Wed, 14 Jul 2010 13:57:14 +0000 (13:57 -0000)
svn path=/trunk/mcs/; revision=160357

mcs/tests/gtest-friend-14-lib.cs [new file with mode: 0644]
mcs/tests/gtest-friend-14.cs [new file with mode: 0644]
mcs/tests/test-787.cs [new file with mode: 0644]
mcs/tests/ver-il-gmcs.xml

diff --git a/mcs/tests/gtest-friend-14-lib.cs b/mcs/tests/gtest-friend-14-lib.cs
new file mode 100644 (file)
index 0000000..6bed7bf
--- /dev/null
@@ -0,0 +1,22 @@
+// Compiler options: -t:library
+
+using System.Collections.Generic;
+using System.Runtime.CompilerServices;
+
+[assembly: InternalsVisibleTo("gtest-friend-14")]
+
+namespace N
+{
+       internal class C
+       {
+               internal struct S
+               {
+                       public string sa;
+                       public string sb;
+               }
+               
+               internal static void Init (IList<C.S> arg)
+               {
+               }
+       }
+}
diff --git a/mcs/tests/gtest-friend-14.cs b/mcs/tests/gtest-friend-14.cs
new file mode 100644 (file)
index 0000000..63b05ab
--- /dev/null
@@ -0,0 +1,12 @@
+// Compiler options: -r:gtest-friend-14-lib.dll
+
+using N;
+
+public class Test
+{
+       public static int Main ()
+       {
+               C.Init (new C.S [0]);
+               return 0;
+       }
+}
diff --git a/mcs/tests/test-787.cs b/mcs/tests/test-787.cs
new file mode 100644 (file)
index 0000000..5c1d28f
--- /dev/null
@@ -0,0 +1,32 @@
+using System;
+
+public class A : Attribute
+{
+       public virtual string Prop {
+               set {}
+               get { return null; }
+       }
+
+       public int Field ()
+       {
+               return 0;
+       }
+}
+
+public class B : A
+{
+       public override string Prop {
+               set {}
+               get { return "b"; }
+       }
+
+       public new int Field;   
+}
+
+[B (Prop = "a", Field = 3)]
+public class Test
+{
+       public static void Main ()
+       {
+       }
+}
index 5ea7dc08237eb8ea4ee66cff223e061d8d76cd63..c7193b78164a8407f8f353d4832da5fe357b5573 100644 (file)
       </method>
     </type>
   </test>
+  <test name="gtest-exmethod-36.cs">
+    <type name="S">
+      <method name="System.String get_Prop()">
+        <size>6</size>
+      </method>
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+    <type name="S2">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+    <type name="E">
+      <method name="Int32 Prop(S)">
+        <size>2</size>
+      </method>
+      <method name="Int32 Prop(S2)">
+        <size>3</size>
+      </method>
+    </type>
+    <type name="C">
+      <method name="Void Main()">
+        <size>43</size>
+      </method>
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+  </test>
   <test name="gtest-friend-01.cs">
     <type name="Test">
       <method name="Void .ctor()">
       </method>
     </type>
   </test>
+  <test name="gtest-friend-14.cs">
+    <type name="Test">
+      <method name="Int32 Main()">
+        <size>13</size>
+      </method>
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+  </test>
   <test name="gtest-implicitarray-01.cs">
     <type name="Test">
       <method name="Void .ctor()">
       </method>
     </type>
   </test>
+  <test name="test-787.cs">
+    <type name="A">
+      <method name="Void set_Prop(System.String)">
+        <size>1</size>
+      </method>
+      <method name="System.String get_Prop()">
+        <size>2</size>
+      </method>
+      <method name="Int32 Field()">
+        <size>2</size>
+      </method>
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+    <type name="B">
+      <method name="Void set_Prop(System.String)">
+        <size>1</size>
+      </method>
+      <method name="System.String get_Prop()">
+        <size>6</size>
+      </method>
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+    <type name="Test">
+      <method name="Void Main()">
+        <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()">