1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-07 01:58:28 +03:00

r7128: added recursion to bugs list

This commit is contained in:
Andrew Tridgell 2005-05-31 01:52:14 +00:00 committed by Gerald (Jerry) Carter
parent 567bb9568c
commit 645e645a4e

View File

@ -69,8 +69,27 @@ function objbug() {
}
/****************************************
demo lack of recursion
fix in http://build.samba.org/build.pl?function=diff;tree=samba4;revision=7127
*****************************************/
function fibonacci(n) {
if (n < 3) {
return 1;
}
return fibonacci(n-1) + fibonacci(n-2);
}
function recursebug() {
println("First 10 fibonacci numbers:");
for (i=0;i<10;i++) {
println("fibonacci(" + i + ")=" + fibonacci(i));
}
}
/* run the tests */
arraybug();
argsbug("one", "two", "three");
recursebug();
objbug()