[Wasm] Fix memory override in mono_wasm_add_assembly
[mono-project.git] / mcs / tests / test-654.cs
blob7d2a69dabe950e2fa0ee74b249f34c202a5cc75d
1 // Compiler options: -unsafe
3 using System;
5 class Program
7 static unsafe public int Main ()
9 return Test ((sbyte*) (-1));
12 static unsafe int Test (sbyte* x)
14 if ((x + 1) < x) {
15 Console.WriteLine ("OK");
16 return 0;
17 } else {
18 Console.WriteLine ("BAD");
19 return 1;