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
2825824a
Commit
2825824a
authored
Sep 10, 2008
by
Michael Beck
Browse files
wrong endless loop handling
[r21813]
parent
15adfe51
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/test/fehler151.c
0 → 100644
View file @
2825824a
#include
<stdio.h>
#include
<stdlib.h>
#include
<signal.h>
int
test
(
void
)
{
abort
();
for
(;;);
}
void
handler
(
int
sig
)
{
printf
(
sig
==
SIGABRT
?
"ok
\n
"
:
"fail"
);
fflush
(
stdout
);
exit
(
sig
!=
SIGABRT
);
}
int
main
(
int
argc
,
char
*
argv
[])
{
alarm
(
1
);
signal
(
SIGABRT
,
handler
);
signal
(
SIGALRM
,
handler
);
test
();
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