Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2010-05-18 22:12:38 +0400
committerMarek Safar <marek.safar@gmail.com>2010-05-18 22:12:38 +0400
commitc9d66d0bdfce28ce379c1c8d37473c2515451604 (patch)
tree10fc0d04dcbb722702cb5941dc8c8598fddb49a3 /mcs/tests/test-769.cs
parentf1ffb1c5b506838d40f249414be5ece011a42171 (diff)
New test.
svn path=/trunk/mcs/; revision=157512
Diffstat (limited to 'mcs/tests/test-769.cs')
-rw-r--r--mcs/tests/test-769.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/mcs/tests/test-769.cs b/mcs/tests/test-769.cs
new file mode 100644
index 00000000000..cfe9e41317b
--- /dev/null
+++ b/mcs/tests/test-769.cs
@@ -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;
+ }
+}