From: Matthias Braun Date: Sat, 4 Aug 2007 09:50:09 +0000 (+0000) Subject: make fehler59 consistent X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=902417cfad363f2609f13039f78d85908e7d70ed;p=libfirm make fehler59 consistent [r15467] --- diff --git a/ir/be/test/fehler59.c b/ir/be/test/fehler59.c index bcf6c5d05..b6e240bd4 100644 --- a/ir/be/test/fehler59.c +++ b/ir/be/test/fehler59.c @@ -1,13 +1,18 @@ #include +#include 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;