repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
arm: fix typo in dg-require-effective-target [PR118089]
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
vect
/
pr101145inf.inc
blob
eb855b9881ab9db24f24341d52ca508bdb63b6a3
1
#include <unistd.h>
2
#include <signal.h>
3
#include <stdlib.h>
4
#include "tree-vect.h"
5
6
void test_finite ();
7
void test_infinite ();
8
9
void do_exit (int i)
10
{
11
exit (0);
12
}
13
14
__attribute__((noinline))
15
int main1(void)
16
{
17
test_finite ();
18
struct sigaction s;
19
sigemptyset (&s.sa_mask);
20
s.sa_handler = do_exit;
21
s.sa_flags = 0;
22
sigaction (SIGALRM, &s, NULL);
23
alarm (1);
24
25
test_infinite ();
26
27
__builtin_abort ();
28
return 1;
29
}
30
31
int main(void)
32
{
33
check_vect ();
34
return main1();
35
}