projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added getter for non address mode heuristic.
[libfirm]
/
ir
/
be
/
test
/
fehler154.c
1
#include <stdio.h>
2
#include <signal.h>
3
#include <stdlib.h>
4
#include <unistd.h>
5
6
int foo(int x)
7
{
8
while(x == 0)
9
;
10
11
return x;
12
}
13
14
int k;
15
16
void handler(int sig)
17
{
18
printf("ok\n");
19
_exit(0);
20
}
21
22
int main(void) {
23
signal(SIGALRM, handler);
24
alarm(1);
25
26
foo(0);
27
28
printf("endless loop returned!\n");
29
return 1;
30
}