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
/
fehler152.c
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include <signal.h>
4
5
volatile int x = 2;
6
7
int test(void) {
8
9
x = 3;
10
11
for(;;);
12
}
13
14
void handler(int sig)
15
{
16
printf(x == 3 ? "ok\n" : "fail");
17
fflush(stdout);
18
exit(x != 3);
19
}
20
21
int main(int argc, char *argv[]) {
22
signal(SIGALRM, handler);
23
alarm(1);
24
test();
25
printf("FAIL ENDLESS LOOP\n");
26
return 1;
27
}