data/method/gdb/gdb-13.2/sim/testsuite/cris/c/sig1.c

21 lines
277 B
C
Raw Normal View History

2024-01-29 10:44:43 +08:00
#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);
}