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

test-487.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1d37d5e97d0414140d25ce3365fb989b581843dc (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
using System;
struct X {
	int i;
	static bool pass = false;
	
	X (object dummy)
	{
		X x = new X ();
		x.i = 1;
		int n = 0;

		if ((this = x).i == 1)
			n ++;
		
		if (this.i == 1)
			n ++;
		
		pass = (n == 2);
	}
	public static int Main ()
	{
		new X (null);
		return pass ? 0 : 1;
	}
}