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
[bcl] Update BCL Linked Size
[mono-project.git]
/
mcs
/
tests
/
test-863.cs
blob
1c4cfaf6a2f9436450fae8c340de079dd4f61d24
1
public class
TestRefKeywords
2
{
3
static int
Main
()
4
{
5
int
i
=
0
;
6
System
.
TypedReference r
=
__makeref
(
i
);
7
System
.
Type t
=
__reftype
(
r
);
8
int
j
=
__refvalue
(
r
,
int
);
9
10
__refvalue
(
r
,
int
) =
4
;
11
var
x
= (
__refvalue
(
r
,
int
) +=
1
);
12
13
if
(
x
!=
5
)
14
return
1
;
15
16
return
0
;
17
}
18
}