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
2009-12-09 Jb Evain <jbevain@novell.com>
[mcs.git]
/
tests
/
test-196.cs
blob
23bf372a5886538a4aabec5655df98098a15e81c
1
//
2
// Tests related to constants and binary operators (bug 39018)
3
//
4
5
class
X
{
6
void
Bug1
() {
7
uint
a
=
1
,
b
=
2
;
8
long
l
= (
b
& (
0x1
<<
31
));
9
}
10
11
void
Bug2
() {
12
uint
a
=
1
,
b
=
2
;
13
const int
l
=
1
;
14
const int
r
=
31
;
15
16
long
ll
= (
b
& (
l
<<
r
));
17
}
18
19
static int
Main
()
20
{
21
const byte
b
=
255
;
22
const int
i
=
b
<<
int
.
MaxValue
;
23
const int
i2
=
b
<<
int
.
MaxValue
;
24
25
return
0
;
26
}
27
}