[System] Tweak socket test
[mono-project.git] / mono / tests / bug-42136.cs
blobdfa57cd99dab63e63a3fb45b00b971175f1b520c
1 using System;
3 public class Test {
5 public static int test_0_liveness_exception() {
6 int id = 1;
8 try {
9 id = 2;
10 throw new Exception ();
12 catch (Exception) {
13 if (id != 2)
14 return id;
17 return 0;
20 public static int Main() {
21 int res = 0;
23 res = test_0_liveness_exception ();
24 if (res != 0)
25 Console.WriteLine ("error, test_0_liveness_exception res={0}", res);
27 return 0;