Update of /cvsroot/nice/Nice/testsuite/compiler/methods
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10732/F:/nice/testsuite/compiler/methods
Modified Files:
namedParameters.testsuite
Log Message:
Testcase for order of evaluation of named arguments.
Index: namedParameters.testsuite
===================================================================
RCS file:
/cvsroot/nice/Nice/testsuite/compiler/methods/namedParameters.testsuite,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** namedParameters.testsuite 24 Nov 2003 15:09:00 -0000 1.1
--- namedParameters.testsuite 15 Oct 2004 12:49:29 -0000 1.2
***************
*** 8,9 ****
--- 8,15 ----
void foo() {}
+ /// PASS bug
+ int i = 2;
+ (int a, int b) = foo(y: i, x: ++i);
+ assert a == 3 && b == 2;
+ /// Toplevel
+ (int, int) foo(int x, int y) = (x, y);
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
|