Mercurial > projects > dang
view test.td @ 21:0fb2d13dce37
Now working with gdc also (gdc use reverse paremeter validating on function calls)
author | johnsen@johnsen-laptop |
---|---|
date | Fri, 18 Apr 2008 21:39:17 +0200 |
parents | e5caf9971207 |
children | e331e4e816e4 |
line wrap: on
line source
int x = 4; int main() { return fib(10); } int fib(int n) { if(n < 2) return n; return fib(n-1) + fib(n-2); } int nice(long s, short t) { int y; byte x = 5 + t + y; if (x != 0) t = 5 + 1 * 5 * s + t; return 2 * (t + -1) - x; } int fac2(int n) { int res = 1; while (n != 1) { res = res * n; n = n - 1; } return res; }