projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[runtime] Don't insta-fail when a faulty COM type is encountered. (#5616)
[mono.git]
/
mcs
/
tests
/
dtest-028.cs
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
}