2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / tests / test-654.cs
blob745aaaffc7dbb66e3f2e25523afd28051d99dae3
1 // Compiler options: -unsafe
3 using System;
5 class Program
7 static unsafe 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;