projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #5198 from BrzVlad/fix-binprot-stats
[mono.git]
/
mcs
/
tests
/
gtest-initialize-14.cs
1
using System;
2
3
struct S
4
{
5
public int X, Y;
6
}
7
8
class X
9
{
10
public static int Main ()
11
{
12
var rect = new S {
13
X = 1,
14
Y = 2,
15
};
16
17
if (rect.X != 1)
18
return 1;
19
20
if (rect.Y != 2)
21
return 2;
22
23
rect = new S {
24
X = rect.X,
25
Y = rect.Y,
26
};
27
28
if (rect.X != 1)
29
return 3;
30
31
if (rect.Y != 2)
32
return 4;
33
34
return 0;
35
}
36
}