projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added C wrapper to Daniel's coalescing JAVA framework
[libfirm]
/
ir
/
be
/
test
/
ll_call.c
1
#include <stdio.h>
2
3
#ifdef __GNUC__
4
long long fac(long long n)
5
{
6
if(n < 1)
7
return 1;
8
9
return (n*fac(n-1));
10
}
11
12
int main(void) {
13
printf("Result:%lld (should be 2432902008176640000)\n",fac(20));
14
15
return fac(20) != 2432902008176640000ULL;
16
}
17
18
#else
19
int main()
20
{
21
return 0;
22
}
23
#endif