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-20 Zoltan Varga <vargaz@gmail.com>
[mcs.git]
/
tests
/
test-556.cs
blob
e9cced721edc44d4a831ea4b8bfee64195663d7e
1
using
System
;
2
using
System
.
Collections
;
3
4
public class
S
5
{
6
public void
Frobnikator
()
7
{
8
const
UInt32 SMALL_MASK
= (
1U
<< (
24
)) -
1
;
9
const ulong
BIG_MASK
=
~
((
ulong
)
SMALL_MASK
);
10
11
}
12
13
public void
CharToX
()
14
{
15
const char
c
=
'a'
;
16
17
const ushort
us
=
c
;
18
const int
i
=
c
;
19
const uint
ui
=
c
;
20
const long
l
=
c
;
21
const ulong
ul
=
c
;
22
const float
fl
=
c
;
23
const double
d
=
c
;
24
const decimal
dec
=
c
;
25
}
26
27
static int
Main
()
28
{
29
long
i
=
1
;
30
int
i2
=
0xA0
;
31
long
b
=
i
<<
i2
;
32
33
if
(
b
!=
4294967296
)
34
return
1
;
35
36
return
0
;
37
}
38
}