[runtime] Avoid holding the init lock while calling the cctor in mono_runtime_class_i...
[mono-project.git] / mcs / tests / test-async-29.cs
blob5681f7aeb79d096e6ff69e2cd6fc7679b0c0d863
1 using System;
2 using System.Threading.Tasks;
4 class C
6 static async Task<int> Test()
8 await Task.Yield();
9 await Task.Yield();
10 await Task.Yield();
11 return 1;
14 public static int Main ()
16 Test ().Wait ();
17 return 0;