repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add support for Windows x64 Full AOT + LLVM + Interpreter on CI. (#15276)
[mono-project.git]
/
mcs
/
tests
/
test-409.cs
blob
44d8b1e097219a8fd1c66a71349919935e244a96
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
public static int
Main
()
15
{
16
X
*
foo
=
null
;
17
18
if
((
int
) (
foo
+
1
) !=
sizeof
(
X
))
19
return
1
;
20
return
0
;
21
}
22
}