projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2006-04-26 Atsushi Enomoto <atsushi@ximian.com>
[mono.git]
/
mcs
/
tests
/
test-409.cs
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
}