[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / tests / test-async-71.cs
blob2b7c425f8b11c2617d4a81dd8533c7cef64d6f7d
1 // Compiler options: -unsafe
3 using System;
4 using System.Threading.Tasks;
6 class UnsafeContext
8 static int Main()
10 if (TestUnsafe (1).Result != 0)
11 return 1;
13 return 0;
16 static async Task<int> TestUnsafe (int g)
18 unsafe {
19 int* ga = &g;
22 await Task.Yield ();
23 return 0;