projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added getter for non address mode heuristic.
[libfirm]
/
ir
/
be
/
test
/
fehler079.c
1
/*$ -fno-inline -fno-cond-eval $*/
2
3
int x;
4
5
int destroy_flags(void) {
6
rand();
7
return 0;
8
}
9
10
int f(void) {
11
int a = (x < 5);
12
int t = 1;
13
destroy_flags();
14
if(a) {
15
t = 42;
16
}
17
return t;
18
}
19
20
int main(void) {
21
x = 2;
22
printf("Res: %d (expected 42)\n", f());
23
x = 10;
24
printf("Res: %d (expected 1)\n", f());
25
26
return 0;
27
}