[System] Use GZipStream from corefx
[mono-project.git] / mono / tests / interlocked-4.2.cs
blobc1a56f2ed472221796eb359f85b1f31e4fa6b5ab
1 using System;
2 using System.Threading;
3 public class DifferentialOperator
5 static void Main (string[] args)
7 WeakReference weakref = null;
8 Swap (ref weakref, new object ());
9 if (weakref == null)
10 throw new Exception ();
13 static void Swap(ref WeakReference refNmsp, object o)
15 WeakReference wref = refNmsp;
16 if (wref != null)
18 Console.WriteLine ("Need this to make it pass");
20 Interlocked.CompareExchange<WeakReference>(ref refNmsp, new WeakReference(o), wref);