Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
14b2eb05
Commit
14b2eb05
authored
Feb 09, 2007
by
Matthias Braun
Browse files
make testapp deterministic
parent
bc48dbf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/test/bf_localinit.c
View file @
14b2eb05
#include
<stdlib.h>
#include
<stdlib.h>
#include
<string.h>
#include
"dumpmem.h"
#include
"dumpmem.h"
struct
bf
{
struct
bf
{
...
@@ -19,7 +20,8 @@ struct bf {
...
@@ -19,7 +20,8 @@ struct bf {
int
main
(
int
argc
,
char
**
argv
)
{
int
main
(
int
argc
,
char
**
argv
)
{
struct
bf
mybf
=
{
0xffffffff
,
4097
,
65537
,
5
,
0xff
,
4
.
5
,
257
};
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
(
"sizeof mybf %d
\n
"
,
sizeof
mybf
);
printf
(
"offset a = %d
\n
"
,
offsetof
(
struct
bf
,
a
));
printf
(
"offset a = %d
\n
"
,
offsetof
(
struct
bf
,
a
));
printf
(
"offset c = %d
\n
"
,
offsetof
(
struct
bf
,
c
));
printf
(
"offset c = %d
\n
"
,
offsetof
(
struct
bf
,
c
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment