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
2008-09-29 Jb Evain <jbevain@novell.com>
[mcs.git]
/
tests
/
test-603.cs
blob
c32bfb8b6745f418131f20e7d54cc746a02bd1d3
1
// Compiler options: -unsafe
2
3
using
System
;
4
5
namespace
ConsoleApplication1
6
{
7
public struct
Strct
8
{
9
public uint
a
;
10
public uint
b
;
11
}
12
13
unsafe class
Program
14
{
15
static
Strct
*
ptr
=
null
;
16
17
static int
Main
()
18
{
19
Strct
*
values
=
ptr
;
20
values
++;
21
values
++;
22
23
long
diff
=
values
-
ptr
;
24
if
(
diff
!=
2
)
25
return
1
;
26
27
return
0
;
28
}
29
}
30
}