[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / test-339.cs
blobf8e44c319491e7bdeab5e4681c7c6424669187d6
1 // Compiler options: -unsafe
3 using System;
5 struct SS
9 public class C
11 public static int[] field = new int [] { 66 };
13 public 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;