[Mono-bugs] [Bug 74654][Nor] Changed - mjs can't handle properly code flow where there're two paths an only one returns.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Aug 2 15:48:40 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by cesar at ciencias.unam.mx.

http://bugzilla.ximian.com/show_bug.cgi?id=74654

--- shadow/74654	2005-05-30 11:31:52.000000000 -0400
+++ shadow/74654.tmp.19951	2005-08-02 15:48:40.000000000 -0400
@@ -54,6 +54,26 @@
 Test case
 
 
 ------- Additional Comments From cesar at ciencias.unam.mx  2005-05-30 11:31 -------
 In order to get this bug solved, we need to implement Control Flow
 Analysis on mjs.
+
+------- Additional Comments From cesar at ciencias.unam.mx  2005-08-02 15:48 -------
+Next program is a test case for this bug:
+
+*****
+
+function Test ()
+{
+    if (true) {
+        print ("Nothing after this should be executed");
+        return;
+    }
+    throw new Error ("I should not be executed");
+}
+
+Test ();
+
+****
+
+If the exception is thrown the IL is wrong.


More information about the mono-bugs mailing list