diff options
Diffstat (limited to 'sim/testsuite/sim/cris/c/sig1.c')
-rw-r--r-- | sim/testsuite/sim/cris/c/sig1.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sim/testsuite/sim/cris/c/sig1.c b/sim/testsuite/sim/cris/c/sig1.c new file mode 100644 index 00000000000..55499b799eb --- /dev/null +++ b/sim/testsuite/sim/cris/c/sig1.c @@ -0,0 +1,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); +} |