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
95faa819
Commit
95faa819
authored
Aug 02, 2007
by
Matthias Braun
Browse files
fix testapps
[r15435]
parent
4e8ab0e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/test/bf_init.c
View file @
95faa819
...
...
@@ -5,7 +5,7 @@ struct bf {
unsigned
x
:
13
;
unsigned
y
:
17
;
unsigned
z
:
3
;
char
c
;
unsigned
char
c
;
double
d
;
unsigned
w
:
9
;
};
...
...
@@ -21,7 +21,7 @@ int main() {
printf
(
"unsigned x:13 (expected 4097): %u
\n
"
,
mybf
.
x
);
printf
(
"unsigned y:17 (expected 65537): %u
\n
"
,
mybf
.
y
);
printf
(
"unsigned y:3 (expected 5): %u
\n
"
,
mybf
.
z
);
printf
(
"char c (expected ff): %x
\n
"
,
(
unsigned
)
mybf
.
c
);
printf
(
"
unsigned
char c (expected ff): %x
\n
"
,
(
unsigned
)
mybf
.
c
);
printf
(
"double d (expected 4.5): %.1f
\n
"
,
mybf
.
d
);
printf
(
"unsigned w:9 (expected 257): %u
\n
"
,
mybf
.
w
);
...
...
ir/be/test/bf_localinit.c
View file @
95faa819
...
...
@@ -7,7 +7,7 @@ struct bf {
unsigned
x
:
13
;
unsigned
y
:
17
;
unsigned
z
:
3
;
char
c
;
unsigned
char
c
;
double
d
;
unsigned
w
:
9
;
};
...
...
@@ -31,7 +31,7 @@ int main(int argc, char **argv) {
printf
(
"unsigned x:13 (expected 4097): %u
\n
"
,
mybf
.
x
);
printf
(
"unsigned y:17 (expected 65537): %u
\n
"
,
mybf
.
y
);
printf
(
"unsigned y:3 (expected 5): %u
\n
"
,
mybf
.
z
);
printf
(
"char c (expected ff): %x
\n
"
,
mybf
.
c
);
printf
(
"
unsigned
char c (expected ff): %x
\n
"
,
mybf
.
c
);
printf
(
"double d (expected 4.5): %.1f
\n
"
,
mybf
.
d
);
printf
(
"unsigned w:9 (expected 257): %u
\n
"
,
mybf
.
w
);
...
...
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