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-04-24 Miguel de Icaza <miguel@novell.com>
[mcs.git]
/
tests
/
test-402.cs
blob
ee6fc0c606ab97e9b4f52eb2aced5283e81133e2
1
// Compiler options: -unsafe
2
3
using
System
;
4
5
unsafe class
X
{
6
static int
Main
() {
7
int
y
=
20
;
8
byte
*
x
= (
byte
*)
0
;
9
x
+= (
long
)
y
;
10
// x == 20;
11
return
(
int
)
x
-
20
*
sizeof
(
byte
);
12
}
13
}