repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix DateTime.Now and CurrentTimeToUtc during DST transition time (#4172)
[mono-project.git]
/
mcs
/
tests
/
gtest-initialize-14.cs
blob
1365493546693ad7d60763bc773ff70e259af6f0
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
}