projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added test case for pbqp construction: There seems to be missing skip patterns, so...
[libfirm]
/
ir
/
be
/
test
/
tailrec.c
1
#include <stdio.h>
2
3
static unsigned fak(unsigned n)
4
{
5
if (n == 0)
6
return 1;
7
8
return n * fak(n - 1);
9
}
10
11
12
int main(int argc, char *argv[])
13
{
14
int x = 4;
15
16
printf("%d! = %d\n", x, fak(x));
17
18
return 0;
19
}