dlr bug
[mcs.git] / tests / test-339.cs
blob1055cf4250c90fc6f654a9aa2beff599b6057a66
1 // Compiler options: -unsafe
3 using System;
5 struct SS
9 public class C
11 public static int[] field = new int [] { 66 };
13 static int Main()
15 unsafe {
16 SS* ss = stackalloc SS [10];
17 SS* s1 = &ss [5];
19 int* values = stackalloc int[20];
20 int* p = &values[1];
21 int* q = &values[15];
23 Console.WriteLine("p - q = {0}", p - q);
24 Console.WriteLine("q - p = {0}", q - p);
26 return 0;