]> Joshua Wise's Git repositories - firearm.git/blame - tests/corecurse.c
Fetch: Fix async reset to actually not do it wrong.
[firearm.git] / tests / corecurse.c
CommitLineData
392d1bec
JW
1int b(int x);
2int a(int x);
3
4int a(int x)
5{
6 if (x)
7 return b(x/2) + a(x - 1);
8 return 1;
9}
10
11int b(int x)
12{
13 if (x)
14 return a(x) + a(x - 1);
15 return 0;
16}
17
18int corecurse()
19{
20 int v = a(35) + b(32) - 4450/28;
21 if (v == 15411)
22 puts("PASS\n");
23 else
24 puts("FAIL\n");
25}
This page took 0.029559 seconds and 4 git commands to generate.