Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-402.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ee6fc0c606ab97e9b4f52eb2aced5283e81133e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Compiler options: -unsafe

using System;

unsafe class X {
	static int Main () {
		int y = 20;
		byte* x = (byte*)0;
		x += (long)y;
		// x == 20;
		return (int)x - 20 * sizeof (byte);
	}
}