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
[tuner] handle the case with multiple "preserve" attributes
[mono-project.git]
/
mcs
/
tests
/
gtest-389.cs
blob
7515bb74cef7d4457a6f0ad74ab51ffd593d332d
1
using
System
;
2
3
enum
MyEnum
:
byte
4
{
5
A
=
1
,
6
B
=
2
,
7
Z
=
255
8
}
9
10
class
C
11
{
12
public static int
Main
()
13
{
14
MyEnum
?
e
=
MyEnum
.
A
;
15
byte
?
b
=
255
;
16
MyEnum
?
res
=
e
+
b
;
17
if
(
res
!=
0
)
18
return
1
;
19
20
e
=
null
;
21
b
=
255
;
22
res
=
e
+
b
;
23
if
(
res
!=
null
)
24
return
2
;
25
26
MyEnum e2
=
MyEnum
.
A
;
27
byte
b2
=
1
;
28
MyEnum res2
=
e2
+
b2
;
29
if
(
res2
!=
MyEnum
.
B
)
30
return
3
;
31
32
Console
.
WriteLine
(
"OK"
);
33
return
0
;
34
}
35
}
36