[tuner] handle the case with multiple "preserve" attributes
[mono-project.git] / mcs / tests / test-async-73.cs
blobdc1935ff743c10d213edbb3a5d0d37fbe9fbd2e8
1 using System.Threading.Tasks;
2 using System;
4 class X
6 static async Task<int> Foo ()
8 var v = Throws ();
10 try {
11 await v;
12 } catch (Exception e) {
13 return 0;
16 return 1;
19 static async Task<int> Throws ()
21 throw new Exception ();
24 static int Main ()
26 if (Foo ().Result != 0)
27 return 1;
29 return 0;