* bug-42136.cs: invalid liveness analyse for locals
used in try and catch block. (exceptions not counted
for in the liveness analyse)
* Makefile.am: added bug-42136.cs
svn path=/trunk/mono/; revision=21557
+2003-12-13 Patrik Torstensson <p@rxc.se>
+
+ * bug-42136.cs: invalid liveness analyse for locals
+ used in try and catch block. (exceptions not counted
+ for in the liveness analyse)
+ * Makefile.am: added bug-42136.cs
+
2003-12-13 Patrik Torstensson <p@rxc.se>
* bug-48015.cs: new test for obj.Equals on ContextBound objects
bug-27420.cs \
bug-47295.cs \
bug-46781.cs \
- bug-48015.cs
+ bug-48015.cs \
+ bug-42136.cs
# These only compile with MS CSC
TEST_CSC_SRC= \
--- /dev/null
+using System;
+
+public class Test {
+
+ public static int test_0_liveness_exception() {
+ int id = 1;
+
+ try {
+ id = 2;
+ throw new Exception ();
+ }
+ catch (Exception) {
+ if (id != 2)
+ return id;
+ }
+
+ return 0;
+ }
+
+ public static int Main() {
+ int res = 0;
+
+ res = test_0_liveness_exception ();
+ if (res != 0)
+ Console.WriteLine ("error, test_0_liveness_exception res={0}", res);
+
+ return 0;
+ }
+}