[xbuild] Add support for Before/AfterTargets.
[mono.git] / mono / tests / interlocked-2.2.cs
index ae7d30a067f11716c6666c48f9ca3c889c282bb5..c16f700f75facc8e1f56e0643e1e9003924e3e58 100644 (file)
@@ -85,6 +85,13 @@ public class InterlockTest
                if (lb != 0x12345678)
                        return 18;              
 
+               la = 1;
+               lb = Interlocked.CompareExchange (ref la, 2, 1);
+               if (la != 2)
+                       return 19;
+               if (lb != 1)
+                       return 20;
+
                Console.WriteLine ("done!");
 
                return 0;