* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / tests / test-340.cs
1 //
2 // Fix for bug: 71819, we were producing the wrong
3 // opcodes when loading parameters in the proxy produced
4 // by the compiler in class B to implement IB.
5 //
6 namespace FLMID.Bugs.BoolOne
7 {
8         public interface IB
9         {
10                 void Add(bool v1, bool v2, uint v3, bool v4);
11         }
12         
13         public class A
14         {
15                 public static bool ok;
16
17                 public void Add(bool v1, bool v2, uint v3, bool v4)
18                 {
19                         ok = v4;
20                 }
21         }
22
23         public class B : A, IB
24         {
25         }
26
27         public class Test
28         {
29                 public static int Main(string[] args)
30                 {
31                         IB aux = new B();
32                         
33                         aux.Add(false, false, 0, true); 
34                         return A.ok ? 0 : 1;
35                 }
36         }
37 }