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
[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git]
/
mcs
/
tests
/
test-debug-27.cs
blob
982b42c9c5fbdea9f31bc19edcf5809d1b23fe62
1
using
System
;
2
3
// Tests for explicit call sequence point
4
5
struct
S
6
{
7
public
S
(
int
i
)
8
{
9
10
}
11
12
public static implicit operator int
(
S s
)
13
{
14
return
1
;
15
}
16
}
17
18
class
C
19
{
20
public static int
A
()
21
{
22
return
1
;
23
}
24
25
public static int
B
(
C c
)
26
{
27
return
2
;
28
}
29
30
public static
C
Test
()
31
{
32
return new
C
();
33
}
34
35
public string
Foo
()
36
{
37
return null
;
38
}
39
40
void
Test_1
()
41
{
42
Func
<
int
>
f
=
A
;
43
44
var
res
=
f
() +
f
();
45
}
46
47
void
Test_2
()
48
{
49
var
s
=
new
S
(
0
);
50
}
51
52
void
Test_3
()
53
{
54
int
i
=
new
S
() +
new
S
();
55
}
56
57
void
Test_4
()
58
{
59
Test
().
Foo
();
60
}
61
62
static int
Main
()
63
{
64
return
0
;
65
}
66
}
67
68