Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2016-08-25 18:23:27 +0300
committerMarek Safar <marek.safar@gmail.com>2016-08-25 19:28:57 +0300
commit0a37c37c7707097ce0121769c8f60b012a0ce202 (patch)
tree561bd2f875fbe512e5c5adbbe0e2d73c588d54d1 /mcs/tests/test-async-88.cs
parente3ff1ef2402538d5a69fe6d0a422442a80f9a711 (diff)
[mcs] Correctly detect catch resume point marker in scope of resume points. Fixes #43636
Diffstat (limited to 'mcs/tests/test-async-88.cs')
-rw-r--r--mcs/tests/test-async-88.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/mcs/tests/test-async-88.cs b/mcs/tests/test-async-88.cs
new file mode 100644
index 00000000000..813d51d6ce1
--- /dev/null
+++ b/mcs/tests/test-async-88.cs
@@ -0,0 +1,28 @@
+using System;
+using System.Threading.Tasks;
+
+public class Test
+{
+ static async Task<string> AsyncWithDeepTry ()
+ {
+ try {
+ await Task.Yield ();
+
+ try {
+ await Task.Yield ();
+ } catch {
+ }
+ } catch {
+ await Task.Yield ();
+ } finally {
+ }
+
+ return null;
+ }
+
+
+ static void Main ()
+ {
+ AsyncWithDeepTry ().Wait ();
+ }
+}