projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Give direct visual feedback by printing "FAILED" when a test in makereport failed.
[libfirm]
/
ir
/
be
/
test
/
fehler59.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
}