A test for bug #321615
svn path=/trunk/mcs/; revision=107156
--- /dev/null
+// Compiler options: -unsafe
+
+using System;
+
+class Program
+{
+ static unsafe int Main ()
+ {
+ return Test ((sbyte*) (-1));
+ }
+
+ static unsafe int Test (sbyte* x)
+ {
+ if ((x + 1) < x) {
+ Console.WriteLine ("OK");
+ return 0;
+ } else {
+ Console.WriteLine ("BAD");
+ return 1;
+ }
+ }
+}
+
</method>
</type>
</test>
+ <test name="test-654.cs">
+ <type name="Program">
+ <method name="Void .ctor()">
+ <size>7</size>
+ </method>
+ <method name="Int32 Main()">
+ <size>8</size>
+ </method>
+ <method name="Int32 Test(System.SByte*)">
+ <size>33</size>
+ </method>
+ </type>
+ </test>
<test name="test-66.cs">
<type name="Y">
<method name="Void .ctor()">