projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[runtime] Coverage profiler fixes (#5698)
[mono.git]
/
mcs
/
tests
/
test-783.cs
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
}