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
2010-02-13 Jb Evain <jbevain@novell.com>
[mcs.git]
/
tests
/
test-618.cs
blob
825c0a950582ac324e5d795eb4f6269a3356493b
1
using
System
;
2
3
class
C
4
{
5
//
6
// All the operations should be reduced
7
//
8
public static void
ZeroBasedReductions
()
9
{
10
int
a
=
1
;
11
12
a
=
a
+
0
;
13
a
=
a
-
0
;
14
a
=
a
|
0
;
15
a
=
0
+
a
;
16
a
=
0
-
a
;
17
a
=
0
|
a
;
18
19
a
=
a
>>
0x40
;
20
}
21
22
public static void
Main
()
23
{
24
ZeroBasedReductions
();
25
}
26
}
27
28