Nice/testsuite/compiler/statements/variables scoping.testsuite,1.2,1.3
Daniel Bonniot <[email protected]>
| Newsgroups | gmane.comp.lang.nice.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/nice/Nice/testsuite/compiler/statements/variables
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15145/testsuite/compiler/statements/variables
Modified Files:
scoping.testsuite
Log Message:
Make sure try and synchronized statements have real blocks as substatements
so that scoping works as expected.
Index: scoping.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/statements/variables/scoping.testsuite,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** scoping.testsuite 7 Oct 2004 22:03:45 -0000 1.2
--- scoping.testsuite 22 Feb 2005 12:53:15 -0000 1.3
***************
*** 20,21 ****
--- 20,58 ----
this();
}
+
+ /// PASS
+ try {
+ int x = 1;
+ } catch(Error e) {
+ int x = 2;
+ } finally {
+ int x = 3;
+ }
+
+ /// PASS
+ try {
+ int x = 1;
+ } catch(Error e) {
+ }
+ int x = 2;
+
+ /// PASS
+ try {
+ } catch(Error e) {
+ int x = 1;
+ }
+ int x = 2;
+
+ /// PASS
+ try {
+ } finally {
+ int x = 1;
+ }
+ int x = 2;
+
+ /// PASS
+ String s = "";
+ synchronized(s) {
+ int x = 1;
+ }
+ int x = 2;
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click