Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-794.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 293c0f1d9643212d13c80f3c968cd846f5977645 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;

internal interface IA
{
	void SomeMethod ();
}

public class C : IA
{
	public static void Main ()
	{
		new C ().TestCallOnly ();
	}

	// The body should contain call (not callvirt) only
	void TestCallOnly ()
	{
		int i = 0;
		var v = new int[0].GetType ();

		new C ().SomeMethod ();
		this.SomeMethod ();
		typeof (C).GetType ();
		new Action (SomeMethod).GetType ();
	}

	public void SomeMethod ()
	{
	}
}