[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / test-794.cs
blob293c0f1d9643212d13c80f3c968cd846f5977645
1 using System;
3 internal interface IA
5 void SomeMethod ();
8 public class C : IA
10 public static void Main ()
12 new C ().TestCallOnly ();
15 // The body should contain call (not callvirt) only
16 void TestCallOnly ()
18 int i = 0;
19 var v = new int[0].GetType ();
21 new C ().SomeMethod ();
22 this.SomeMethod ();
23 typeof (C).GetType ();
24 new Action (SomeMethod).GetType ();
27 public void SomeMethod ()