[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / test-603.cs
blobfee24efd5b9a659075fa5009b3b340e70d4cb35c
1 // Compiler options: -unsafe
3 using System;
5 namespace ConsoleApplication1
7 public struct Strct
9 public uint a;
10 public uint b;
13 unsafe class Program
15 static Strct* ptr = null;
17 public static int Main ()
19 Strct* values = ptr;
20 values++;
21 values++;
23 long diff = values - ptr;
24 if (diff != 2)
25 return 1;
27 return 0;