projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2005-02-08 Atsushi Enomoto <atsushi@ximian.com>
[mono.git]
/
mcs
/
tests
/
unsafe-10.cs
1
// Compiler options: -unsafe
2
3
using System;
4
5
unsafe class X {
6
static int Main () {
7
int y = 20;
8
byte* x = (byte*)0;
9
x += (long)y;
10
// x == 20;
11
return (int)x - 20 * sizeof (byte);
12
}
13
}