2009-02-10 Jeffrey Stedfast <fejj@novell.com>
[mono-project/dkf.git] / mcs / tests / test-402.cs
blobee6fc0c606ab97e9b4f52eb2aced5283e81133e2
1 // Compiler options: -unsafe
3 using System;
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);