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
Fix LLVM linker flags for 6.0.
[mono-project.git]
/
mcs
/
tests
/
test-783.cs
blob
93e24821d8bd104d281b62a9b28e52c32f0d5a7e
1
enum
E { a, b }
2
3
class
C
4
{
5
static void
M
(
E e
)
6
{
7
}
8
9
static int
Test
(
int
a
)
10
{
11
return
-
1
;
12
}
13
14
static int
Test
(
E e
)
15
{
16
return
1
;
17
}
18
19
public static int
Main
()
20
{
21
M
((
uint
)
0
);
22
M
((
long
)
0
);
23
M
((
sbyte
)
0
);
24
M
((
ulong
)
0
);
25
26
var
d
=
E
.
b
;
27
if
(
Test
(
d
-
0
) !=
1
)
28
return
1
;
29
30
if
(
Test
(
d
-
1
) !=
1
)
31
return
2
;
32
33
if
(
Test
(
d
+
0
) !=
1
)
34
return
3
;
35
36
if
(
Test
(
d
+
1
) !=
1
)
37
return
4
;
38
39
return
0
;
40
}
41
}