projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdf974d
)
make fehler59 consistent
author
Matthias Braun
<matze@braunis.de>
Sat, 4 Aug 2007 09:50:09 +0000
(09:50 +0000)
committer
Matthias Braun
<matze@braunis.de>
Sat, 4 Aug 2007 09:50:09 +0000
(09:50 +0000)
[r15467]
ir/be/test/fehler59.c
patch
|
blob
|
history
diff --git
a/ir/be/test/fehler59.c
b/ir/be/test/fehler59.c
index
bcf6c5d
..
b6e240b
100644
(file)
--- a/
ir/be/test/fehler59.c
+++ b/
ir/be/test/fehler59.c
@@
-1,13
+1,18
@@
#include <alloca.h>
+#include <assert.h>
int main()
{
char *b1 = alloca(13);
int i;
+ int lastoffs = 0;
for(i = 0; i < 5; ++i) {
- char *bfs = alloca(24);
- printf("Offset: %d\n", bfs - b1);
+ char *bfs = alloca(24);
+ int offset = b1 - bfs;
+ memset(bfs, 0, 24);
+ assert(offset > lastoffs);
+ lastoffs = offset;
}
return 0;