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
158c7c6b
Commit
158c7c6b
authored
Sep 10, 2008
by
Michael Beck
Browse files
another strange endless loop failure
[r21814]
parent
2825824a
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/test/fehler152.c
0 → 100644
View file @
158c7c6b
#include
<stdio.h>
#include
<stdlib.h>
#include
<signal.h>
int
x
=
2
;
int
test
(
void
)
{
x
=
3
;
for
(;;);
}
void
handler
(
int
sig
)
{
printf
(
x
==
3
?
"ok
\n
"
:
"fail"
);
fflush
(
stdout
);
exit
(
x
==
3
);
}
int
main
(
int
argc
,
char
*
argv
[])
{
alarm
(
1
);
signal
(
SIGALRM
,
handler
);
test
();
printf
(
"FAIL ENDLESS LOOP
\n
"
);
return
1
;
}
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