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

test-182.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 476e222ec0d976037c11688c0fcd54e7c45f5aa0 (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
//
// See bug 37473
//
using System;
struct TS {
	long ticks;
	public long Ticks {
		get {return ++ticks;}
	}
}
struct DT {
	TS t;
	public long Ticks {
		get {return t.Ticks;}
	}
}

class T {
	public static int Main () {
		DT t = new DT ();
		if (t.Ticks != 1)
			return 1;
		return 0;
	}
}