projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
call optimize_cf() to delete dead-code that might arise after cond_eval
[libfirm]
/
ir
/
be
/
test
/
fehler038.c
1
#ifdef __GNUC__
2
#define NO_INLINE __attribute__((noinline))
3
#else
4
#define NO_INLINE __declspec(noinline)
5
#endif
6
7
8
int NO_INLINE f(int y, int z)
9
{
10
int x = 0;
11
if (y) x++;
12
if (z) x++;
13
return x;
14
}
15
16
17
int main(void)
18
{
19
printf("%d (0)\n", f(0, 0));
20
printf("%d (1)\n", f(0, 1));
21
printf("%d (1)\n", f(1, 0));
22
printf("%d (2)\n", f(1, 1));
23
return 0;
24
}