Initial set of Ward sgen annotations (#5705)
[mono.git] / mcs / tests / test-async-67.cs
1 using System;
2 using System.Threading.Tasks;
3
4 class Test
5 {
6         public static async Task<int[]> Run ()
7         {
8                 return new int[] {
9                         1, await Task.Factory.StartNew (() => 2)
10                 };
11         }
12
13         public static int Main ()
14         {
15                 var t = Run ().Result;
16                 if (t [0] != 1)
17                         return 1;
18
19                 if (t [1] != 2)
20                         return 2;
21
22                 return 0;
23         }
24 }