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
[interp] Reduce computation under calc_section mutex
[mono-project.git]
/
mcs
/
tests
/
dtest-027.cs
blob
9a97972897ac584efcfb398fcd6388f690884b40
1
class
C
2
{
3
public int
M
(
object
d
,
long
s
)
4
{
5
return
1
;
6
}
7
8
public int
M
(
long
s
,
object
d
)
9
{
10
return
2
;
11
}
12
13
public int
M
(
dynamic
d
,
dynamic
s
)
14
{
15
return
3
;
16
}
17
18
public int
M2
(
object
d
)
19
{
20
return
1
;
21
}
22
23
public int
M2
(
byte
s
)
24
{
25
return
2
;
26
}
27
}
28
29
public class
Test
30
{
31
public static int
Main
()
32
{
33
dynamic
d
=
new
C
();
34
byte
s
=
5
;
35
object
o
=
2
;
36
int
v
=
d
.
M
(
s
,
o
);
37
38
if
(
v
!=
2
)
39
return
1
;
40
41
v
=
d
.
M2
(
1
+
3
);
42
if
(
v
!=
2
)
43
return
2
;
44
45
return
0
;
46
}
47
}