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-05-19 Jb Evain <jbevain@novell.com>
[mcs.git]
/
tests
/
test-689.cs
blob
658faa1eb4d454a3312f176d3ad02edc03241695
1
// Compiler options: -unsafe
2
3
public struct
Sample
4
{
5
public static unsafe void
Foo
(
byte
*
a
,
byte
*
b
)
6
{
7
int
*
p
= (
int
*)
0
;
8
long
*
s
= (
long
*) ++
p
;
9
s
= (
long
*) --
p
;
10
11
int
v
=
0
;
12
s
= (
long
*) -
v
;
13
s
= (
long
*) +
v
;
14
15
byte
c
= (
byte
)(*
a
++ * *
b
++);
16
}
17
18
public static void
Main
()
19
{
20
int
i
= (
global
::
System
.
Int32
)
1
;
21
}
22
}
23