New test.
authorMarek Safar <marek.safar@gmail.com>
Tue, 18 May 2010 18:12:38 +0000 (18:12 -0000)
committerMarek Safar <marek.safar@gmail.com>
Tue, 18 May 2010 18:12:38 +0000 (18:12 -0000)
svn path=/trunk/mcs/; revision=157512

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

diff --git a/mcs/tests/test-769.cs b/mcs/tests/test-769.cs
new file mode 100644 (file)
index 0000000..cfe9e41
--- /dev/null
@@ -0,0 +1,28 @@
+using System;
+using System.Reflection;
+
+public interface I
+{
+       void Clear ();
+}
+
+public class C : I
+{
+       public void Clear () { }
+       void I.Clear () { }
+
+       public static int Main ()
+       {
+               var m1 = typeof (C).GetMethod ("Clear");
+               Console.WriteLine (m1.Attributes);
+               if (m1.Attributes != (MethodAttributes.Public | MethodAttributes.HideBySig))
+                       return 1;
+
+               var m2 = typeof (C).GetMethod ("I.Clear", BindingFlags.NonPublic | BindingFlags.Instance);
+               Console.WriteLine (m2.Attributes);
+               if (m2.Attributes != (MethodAttributes.Private | MethodAttributes.HideBySig | MethodAttributes.Final | MethodAttributes.Virtual | MethodAttributes.VtableLayoutMask))
+                       return 2;
+
+               return 0;
+       }
+}
index 5b65600da7a7b7984477fb460e873d29412f760f..3ee56a7a5d4668de69aeee6eee5c4e87e74fc0ed 100644 (file)
       </method>
     </type>
   </test>
+  <test name="test-769.cs">
+    <type name="C">
+      <method name="Void I.Clear()">
+        <size>1</size>
+      </method>
+      <method name="Void Clear()">
+        <size>1</size>
+      </method>
+      <method name="Int32 Main()">
+        <size>114</size>
+      </method>
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+  </test>
   <test name="test-77.cs">
     <type name="XX">
       <method name="Void .ctor()">