[Nice-commit] Nice/testsuite/compiler/expressions expressionlocalvariable.testsuite,1.2,1.3
Brought to you by:
bonniot
From: <bo...@us...> - 2004-02-18 15:40:54
|
Update of /cvsroot/nice/Nice/testsuite/compiler/expressions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29799/testsuite/compiler/expressions Modified Files: expressionlocalvariable.testsuite Log Message: Allow expression-local variables without keywords but with a type specifier. Index: expressionlocalvariable.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/expressions/expressionlocalvariable.testsuite,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** expressionlocalvariable.testsuite 3 Feb 2004 01:28:10 -0000 1.2 --- expressionlocalvariable.testsuite 18 Feb 2004 15:31:10 -0000 1.3 *************** *** 46,47 **** --- 46,52 ---- assert z == 40; } + + /// PASS + int foo(int a, int b, int c) = a + b + c; + + assert foo(int x = 1, int y = x + 1, y + 1) == 6; |