Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / test-794.cs
1 using System;
2
3 internal interface IA
4 {
5         void SomeMethod ();
6 }
7
8 public class C : IA
9 {
10         public static void Main ()
11         {
12                 new C ().TestCallOnly ();
13         }
14
15         // The body should contain call (not callvirt) only
16         void TestCallOnly ()
17         {
18                 int i = 0;
19                 var v = new int[0].GetType ();
20
21                 new C ().SomeMethod ();
22                 this.SomeMethod ();
23                 typeof (C).GetType ();
24                 new Action (SomeMethod).GetType ();
25         }
26
27         public void SomeMethod ()
28         {
29         }
30 }