summaryrefslogtreecommitdiff
path: root/sim/testsuite/sim/cris/c/sig1.c
blob: 55499b799eb090069af263a05ae373087c84eb8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>
#include <signal.h>
#include <stdlib.h>

void
leave (int n)
{
  exit (0);
}

int
main (void)
{
  /* Check that the sigaction syscall (for signal) is interpreted, though
     possibly ignored.  */
  signal (SIGFPE, leave);

  printf ("pass\n");
  exit (0);
}