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
/
dtest-028.cs
blob
94c33799bde4a0103b2ab7a0eb1fa95db602a442
1
class
C
2
{
3
public void
MethodRef
(
ref int
a
)
4
{
5
a
+=
10
;
6
}
7
8
public void
MethodOut
(
out ushort
a
)
9
{
10
a
=
40
;
11
}
12
}
13
14
public class
Test
15
{
16
static void
M
(
ref dynamic
[]
d
,
ref object
[]
o
)
17
{
18
}
19
20
public static int
Main
()
21
{
22
dynamic
d
=
new
C
();
23
int
i
=
1
;
24
25
d
.
MethodRef
(
ref
i
);
26
if
(
i
!=
11
)
27
return
1
;
28
29
ushort
u
=
9
;
30
d
.
MethodOut
(
out
u
);
31
if
(
u
!=
40
)
32
return
2
;
33
34
object
[]
o
=
null
;
35
M
(
ref
o
,
ref
o
);
36
37
return
0
;
38
}
39
}