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
80ddf88e
Commit
80ddf88e
authored
May 25, 2008
by
Michael Beck
Browse files
improved test: added new Confirm/cond_eval combination
[r19751]
parent
2896b226
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/test/confirm.c
View file @
80ddf88e
#include <stdio.h>
int
xtest
(
int
x
)
{
if
(
x
)
{
printf
(
"%d
\n
"
,
x
);
}
if
(
x
)
{
printf
(
"%d
\n
"
,
x
);
}
}
int
test
(
int
a
,
int
b
)
{
int
x
=
a
*
b
;
if
(
a
==
0
)
...
...
@@ -29,8 +38,9 @@ int test3(int a, int b) {
}
int
main
(
void
)
{
printf
(
"xtest() = %d
\n
"
,
xtest
(
1
));
printf
(
"test() = %d
\n
"
,
test
(
0
,
1
));
printf
(
"test() = %d
\n
"
,
test2
(
1
,
3
));
printf
(
"test() = %d
\n
"
,
test3
(
-
3
,
3
));
printf
(
"test
2
() = %d
\n
"
,
test2
(
1
,
3
));
printf
(
"test
3
() = %d
\n
"
,
test3
(
-
3
,
3
));
return
0
;
}
Write
Preview
Markdown
is supported
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