Merge pull request #3973 from mono/small-perf
[mono.git] / mcs / tests / test-async-01.cs
index 6f9f8aa830c8013d11b49d41953fdfffdc4d673e..cc9271c9353dbd276f45c69281eb1e27e5abf925 100644 (file)
@@ -1,4 +1,3 @@
-// Compiler options: -langversion:future
 using System;
 using System.Threading;
 using System.Threading.Tasks;
@@ -10,7 +9,7 @@ class Program
 
        static int pos;
 
-       static int Main ()
+       public static int Main ()
        {
                pos = 0;
                TestAsync ();
@@ -35,7 +34,7 @@ class Program
        {
                pos = 1;
 
-               await RunAsync ();
+               await RunAsync ().ConfigureAwait (false);
 
                if (pos != 3)
                        throw new ApplicationException (pos.ToString ());