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
bring Mono Security to monotouch
[mcs.git]
/
tests
/
test-409.cs
blob
f35fd3eb78558cca73eea36c4730e61dd5d64c39
1
// Compiler options: -unsafe
2
3
//
4
// Test for http://bugzilla.ximian.com/show_bug.cgi?id=62263
5
//
6
// We need to make sure that pointer arth uses the size of X
7
// not the size of X*
8
//
9
10
using
System
;
11
unsafe struct
X
{
12
int
x
,
y
,
z
;
13
14
static int
Main
()
15
{
16
X
*
foo
=
null
;
17
18
if
((
int
) (
foo
+
1
) !=
sizeof
(
X
))
19
return
1
;
20
return
0
;
21
}
22
}