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
/
fehler059.c
1
#include <alloca.h>
2
#include <assert.h>
3
4
int main()
5
{
6
char *b1 = alloca(13);
7
int i;
8
int lastoffs = 0;
9
10
for(i = 0; i < 5; ++i) {
11
char *bfs = alloca(24);
12
int offset = b1 - bfs;
13
memset(bfs, 0, 24);
14
assert(offset > lastoffs);
15
lastoffs = offset;
16
}
17
18
return 0;
19
}