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
98b744de
Commit
98b744de
authored
Oct 02, 2008
by
Michael Beck
Browse files
test for a rather simply gcc optimization
[r22409]
parent
fa9dada1
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/test/global_null_test.c
0 → 100644
View file @
98b744de
static
void
f1
(
void
)
{
printf
(
"f1
\n
"
);
}
static
void
f2
(
void
)
{
printf
(
"f2
\n
"
);
}
int
test
(
char
*
x
)
{
char
ret
=
*
x
;
if
(
x
)
f1
();
else
f2
();
return
ret
;
}
int
main
(
int
argc
,
char
*
argv
[])
{
char
x
=
'\0'
;
return
test
(
&
x
);
}
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