projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #1150 from ludovic-henry/pr17c-delegate-trampoline
[mono.git]
/
mcs
/
tests
/
gtest-autoproperty-09.cs
1
using System;
2
3
struct S
4
{
5
public static int P { get; } = 4;
6
7
public static int Main ()
8
{
9
if (P != 4)
10
return 1;
11
12
var c = new C ();
13
if (c.P != -3)
14
return 2;
15
16
if (c.P2 != 1)
17
return 3;
18
19
c.P2 = 9;
20
if (c.P2 != 9)
21
return 4;
22
23
var s = new S2 (null);
24
if (s.P != 4)
25
return 12;
26
27
if (s.P2 != 1)
28
return 13;
29
30
s.P2 = 9;
31
if (s.P2 != 9)
32
return 14;
33
34
return 0;
35
}
36
}
37
38
class C
39
{
40
public decimal P { get; } = -3;
41
public int P2 { get; set; } = 1;
42
}
43
44
struct S2
45
{
46
public int P { get; } = 4;
47
public int P2 { get; set; } = 1;
48
49
public S2 (object o)
50
{
51
}
52
}