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

test-689.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 658faa1eb4d454a3312f176d3ad02edc03241695 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Compiler options: -unsafe

public struct Sample
{
	public static unsafe void Foo (byte* a, byte* b)
	{
		int* p = (int*)0;
		long* s = (long*) ++p;
		s = (long*) --p;
		
		int v = 0;
		s = (long*) -v;
		s = (long*) +v;

		byte c = (byte)(*a++ * *b++);
	}
	
	public static void Main ()
	{
		int i = (global::System.Int32)1;
	}
}