Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-603.cs
1 // Compiler options: -unsafe
2
3 using System;
4
5 namespace ConsoleApplication1
6 {
7         public struct Strct
8         {
9                 public uint a;
10                 public uint b;
11         }
12         
13         unsafe class Program
14         {
15                 static Strct* ptr = null;
16                 
17                 public static int Main ()
18                 {
19                         Strct* values = ptr;
20                         values++;
21                         values++;
22                         
23                         long diff = values - ptr;
24                         if (diff != 2)
25                                 return 1;
26                         
27                         return 0;
28                 }
29         }
30 }