projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2009-12-03 Zoltan Varga <vargaz@gmail.com>
[mono.git]
/
mono
/
tests
/
outparm.cs
1
public class OutParm {
2
3
public static void out_param (out int n) {
4
n = 1;
5
}
6
public static void ref_param (ref int n) {
7
n += 2;
8
}
9
public static int Main () {
10
int n = 0;
11
out_param (out n);
12
if (n != 1)
13
return 1;
14
ref_param (ref n);
15
if (n != 3)
16
return 2;
17
return 0;
18
}
19
}
20
21