* interlocked-2.2.cs: Add tests for Interlocked.Increment/Decrement on longs.
svn path=/trunk/mono/; revision=98886
+2008-03-24 Zoltan Varga <vargaz@gmail.com>
+
+ * interlocked-2.2.cs: Add tests for Interlocked.Increment/Decrement on longs.
+
2008-03-22 Zoltan Varga <vargaz@gmail.com>
* assemblyresolve/Makefile.am (MCS): Use gmcs.exe instead of mcs.exe.
if (o != o2)
return 15;
+ /* long increment/decrement */
+ la = 0x12345678;
+ lb = Interlocked.Increment (ref la);
+ if (la != 0x12345679)
+ return 16;
+ if (lb != 0x12345679)
+ return 16;
+ lb = Interlocked.Decrement (ref la);
+ if (la != 0x12345678)
+ return 17;
+ if (lb != 0x12345678)
+ return 18;
+
Console.WriteLine ("done!");
return 0;