projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Allow passing null to JsonArray.Add()
[mono.git]
/
mcs
/
tests
/
gtest-initialize-06.cs
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
}