Update of /cvsroot/nice/Nice/testsuite/compiler/syntax
In directory sc8-pr-cvs1:/tmp/cvs-serv14900/F:/nice/testsuite/compiler/syntax
Modified Files:
loops.testsuite
Log Message:
Fix checking of assignments to uninitialized local constants inside loops.
Index: loops.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/syntax/loops.testsuite,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** loops.testsuite 29 Apr 2003 21:06:50 -0000 1.1
--- loops.testsuite 21 May 2003 14:21:00 -0000 1.2
***************
*** 10,17 ****
for (i = 0; i < 10; i++){}
! /// FAIL bug
! let int x;
! for (int i = 0; i < 5; i++)
x = 7;
/// PASS
--- 10,38 ----
for (i = 0; i < 10; i++){}
! /// FAIL
! let int x;
! for (int i = 0; i < 5; i++)
! x = 7;
!
! /// PASS
! for (int i = 0; i < 5; i++) {
! let int x;
x = 7;
+ }
+
+ /// FAIL
+ for (int k = 0; k < 3; k++) {
+ let int x;
+ for (int i = 0; i < 5; i++)
+ x = 7;
+ }
+
+ /// PASS
+ for (int k = 0; k < 3; k++) {
+ for (int i = 0; i < 5; i++) {
+ let int x;
+ x = 7;
+ }
+ }
/// PASS
|