Commit 902417cf authored by Matthias Braun's avatar Matthias Braun
Browse files

make fehler59 consistent

[r15467]
parent cdf974df
#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);
int offset = b1 - bfs;
memset(bfs, 0, 24);
assert(offset > lastoffs);
lastoffs = offset;
}
return 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment