projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Example for optimizing non-strict programs using combo.
[libfirm]
/
ir
/
be
/
test
/
fehler152.c
diff --git
a/ir/be/test/fehler152.c
b/ir/be/test/fehler152.c
index
66d1fd8
..
4f5e991
100644
(file)
--- a/
ir/be/test/fehler152.c
+++ b/
ir/be/test/fehler152.c
@@
-15,12
+15,12
@@
void handler(int sig)
{
printf(x == 3 ? "ok\n" : "fail");
fflush(stdout);
- exit(x
=
= 3);
+ exit(x
!
= 3);
}
int main(int argc, char *argv[]) {
- alarm(1);
signal(SIGALRM, handler);
+ alarm(1);
test();
printf("FAIL ENDLESS LOOP\n");
return 1;