Update of /cvsroot/nice/Nice/testsuite/compiler/native
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5036/testsuite/compiler/native
Modified Files:
synchronized.testsuite
Log Message:
When a return is inside a try/finally, store the result in a method-level
local bytecode variable, to make sure that the finally blocks do not use
the same slot (closes #888452).
Index: synchronized.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/native/synchronized.testsuite,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** synchronized.testsuite 17 Sep 2003 00:14:06 -0000 1.3
--- synchronized.testsuite 2 Feb 2004 00:47:32 -0000 1.4
***************
*** 42,43 ****
--- 42,58 ----
}
}
+
+ /// PASS
+ /// Toplevel
+ class Foo {}
+
+ int bar (Foo obj)
+ {
+ synchronized(obj)
+ {
+ ?Throwable exn = new Exception();
+ if (exn != null)
+ throw exn;
+ return 1;
+ }
+ }
|