[Nice-commit] Nice/testsuite/compiler/syntax loops.testsuite,1.2,1.3
Brought to you by:
bonniot
From: <bo...@us...> - 2003-05-21 15:42:37
|
Update of /cvsroot/nice/Nice/testsuite/compiler/syntax In directory sc8-pr-cvs1:/tmp/cvs-serv7638/testsuite/compiler/syntax Modified Files: loops.testsuite Log Message: Check that the collection of locals is correctly computed after exiting an inner loop. Index: loops.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/syntax/loops.testsuite,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** loops.testsuite 21 May 2003 14:21:00 -0000 1.2 --- loops.testsuite 21 May 2003 15:30:42 -0000 1.3 *************** *** 26,30 **** for (int i = 0; i < 5; i++) x = 7; ! } /// PASS --- 26,38 ---- for (int i = 0; i < 5; i++) x = 7; ! } ! ! /// PASS ! for (int k = 0; k < 3; k++) { ! let int x; ! for (int i = 0; i < 5; i++) ! ; ! x = 7; ! } /// PASS *************** *** 43,48 **** /// PASS - /// COMMENT: this was broken in all versions before 29-4-03 boolean update = false; for (int i = 0; i < 5; i++,update=true){} ! assert(update); \ No newline at end of file --- 51,55 ---- /// PASS boolean update = false; for (int i = 0; i < 5; i++,update=true){} ! assert(update); |