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:
authorMiguel de Icaza <miguel@gnome.org>2005-02-01 04:54:57 +0300
committerMiguel de Icaza <miguel@gnome.org>2005-02-01 04:54:57 +0300
commitee1e181ef917d2532a0dd336e55d530b68873d93 (patch)
tree9ae923eed70ad87bbf8bc53be96f8d7fbb3a5c97 /mcs/tests/test-340.cs
parent5b2995ed921d8f8ab47acb1b746e520af9732dd0 (diff)
Update version numbers
svn path=/trunk/mcs/; revision=39898
Diffstat (limited to 'mcs/tests/test-340.cs')
-rw-r--r--mcs/tests/test-340.cs37
1 files changed, 37 insertions, 0 deletions
diff --git a/mcs/tests/test-340.cs b/mcs/tests/test-340.cs
new file mode 100644
index 00000000000..7e637a50c3c
--- /dev/null
+++ b/mcs/tests/test-340.cs
@@ -0,0 +1,37 @@
+//
+// Fix for bug: 71819, we were producing the wrong
+// opcodes when loading parameters in the proxy produced
+// by the compiler in class B to implement IB.
+//
+namespace FLMID.Bugs.BoolOne
+{
+ public interface IB
+ {
+ void Add(bool v1, bool v2, uint v3, bool v4);
+ }
+
+ public class A
+ {
+ public static bool ok;
+
+ public void Add(bool v1, bool v2, uint v3, bool v4)
+ {
+ ok = v4;
+ }
+ }
+
+ public class B : A, IB
+ {
+ }
+
+ public class Test
+ {
+ public static int Main(string[] args)
+ {
+ IB aux = new B();
+
+ aux.Add(false, false, 0, true);
+ return A.ok ? 0 : 1;
+ }
+ }
+}