Merge pull request #4998 from kumpera/fix_56684
[mono.git] / mcs / tests / test-689.cs
1 // Compiler options: -unsafe
2
3 public struct Sample
4 {
5         public static unsafe void Foo (byte* a, byte* b)
6         {
7                 int* p = (int*)0;
8                 long* s = (long*) ++p;
9                 s = (long*) --p;
10                 
11                 int v = 0;
12                 s = (long*) -v;
13                 s = (long*) +v;
14
15                 byte c = (byte)(*a++ * *b++);
16         }
17         
18         public static void Main ()
19         {
20                 int i = (global::System.Int32)1;
21         }
22 }
23