projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
bc48dbf
)
make testapp deterministic
author
Matthias Braun
<matze@braunis.de>
Fri, 9 Feb 2007 14:50:08 +0000
(14:50 +0000)
committer
Matthias Braun
<matze@braunis.de>
Fri, 9 Feb 2007 14:50:08 +0000
(14:50 +0000)
ir/be/test/bf_localinit.c
patch
|
blob
|
history
diff --git
a/ir/be/test/bf_localinit.c
b/ir/be/test/bf_localinit.c
index
06d5100
..
b390b13
100644
(file)
--- a/
ir/be/test/bf_localinit.c
+++ b/
ir/be/test/bf_localinit.c
@@
-1,4
+1,5
@@
#include <stdlib.h>
+#include <string.h>
#include "dumpmem.h"
struct bf {
@@
-19,7
+20,8
@@
struct bf {
int main(int argc, char **argv) {
struct bf mybf = { 0xffffffff, 4097, 65537, 5, 0xff, 4.5, 257 };
- dumpMem(&mybf, sizeof mybf);
+ if(argc > 1)
+ dumpMem(&mybf, sizeof mybf);
printf("sizeof mybf %d\n", sizeof mybf);
printf("offset a = %d\n", offsetof(struct bf, a));
printf("offset c = %d\n", offsetof(struct bf, c));