repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
remove NotWorking
[mcs.git]
/
tests
/
gtest-initialize-06.cs
blob
78cc40b42eb5bd399d7fe31952f4c6fd083cf1b6
1
2
3
struct
Point
4
{
5
public int
X
,
Y
;
6
}
7
8
class
C
9
{
10
public static int
Main
()
11
{
12
Point p
;
13
Foo
(
out
p
);
14
15
if
(
p
.
X
!=
3
)
16
return
1
;
17
18
if
(
p
.
Y
!=
5
)
19
return
2
;
20
21
return
0
;
22
}
23
24
static void
Foo
(
out
Point p
)
25
{
26
p
=
new
Point
()
{ X = 3, Y = 5 }
;
27
}
28
}