[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / test-845.cs
blobcab90047bc905e1a0cdcaa38c2a480024a131b41
1 interface IA
5 interface IB
7 int Foo ();
8 int Foo2 ();
11 interface IC : IA, IB
15 class C1 : IA, IB
17 public int Foo ()
19 return 5;
22 public int Foo2 ()
24 return 55;
28 class C2 : C1, IC
30 public new int Foo ()
32 return 2;
35 public int Foo2 ()
37 return 2;
40 public static int Main ()
42 IC ic = new C2 ();
43 if (ic.Foo () != 2)
44 return 1;
46 if (ic.Foo2 () != 2)
47 return 2;
49 return 0;