[Nice-commit] Nice/testsuite/compiler/functions local.testsuite,1.1,1.2
Brought to you by:
bonniot
From: <ar...@us...> - 2003-05-09 02:03:55
|
Update of /cvsroot/nice/Nice/testsuite/compiler/functions In directory sc8-pr-cvs1:/tmp/cvs-serv9359/F:/nice/testsuite/compiler/functions Modified Files: local.testsuite Log Message: Allow recursive local functions. Index: local.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/functions/local.testsuite,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** local.testsuite 26 Jul 2002 14:24:33 -0000 1.1 --- local.testsuite 8 May 2003 23:25:15 -0000 1.2 *************** *** 4,5 **** --- 4,13 ---- void f(int x) { if (true) return; } + /// PASS + int x = 0; + void f2(int i) { + x++; + if (i>0) f2(i-1); + } + f2(4); + assert x==5; |