[runtime] Avoid indirection when building MonoContext on darwin
[mono.git] / mcs / tests / test-async-71.cs
1 // Compiler options: -unsafe
2
3 using System;
4 using System.Threading.Tasks;
5
6 class UnsafeContext
7 {
8         static int Main()
9         {
10                 if (TestUnsafe (1).Result != 0)
11                         return 1;
12
13                 return 0;
14         }
15
16         static async Task<int> TestUnsafe (int g)
17         {
18                 unsafe {
19                         int* ga = &g;
20                 }
21
22                 await Task.Yield ();
23                 return 0;
24         }
25 }