repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add comment
[mcs.git]
/
tests
/
test-640.cs
blob
705149a365c3b83b0980de48230f8b4c04fb7778
1
enum
MyEnum
:
byte
2
{
3
Value_1
=
1
4
}
5
6
public class
C
7
{
8
public static int
Main
()
9
{
10
MyEnum me
=
MyEnum
.
Value_1
;
11
MyEnum b
=
~me
;
12
13
if
(
b
!= (
MyEnum
)
254
)
14
return
1
;
15
16
byte
r
=
b
-
me
;
17
if
(
r
!=
253
)
18
return
2
;
19
20
b
=
b
-
2
;
21
if
(
b
!= (
MyEnum
)
252
)
22
return
3
;
23
24
me
-=
MyEnum
.
Value_1
;
25
26
b
= (
MyEnum
)
255
;
27
b
&=
~MyEnum
.
Value_1
;
28
if
(
b
!= (
MyEnum
)
254
)
29
return
4
;
30
31
System
.
Console
.
WriteLine
(
"OK"
);
32
return
0
;
33
}
34
}