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
Reduce TLS accesses. (#11487)
[mono-project.git]
/
mono
/
tests
/
outparm.cs
blob
b7f9d3db150ea62953430595f8942ef09a5c106c
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