Projet_SETI_RISC-V/riscv-gnu-toolchain/binutils/sim/testsuite/cris/c/sig5.c

19 lines
354 B
C
Raw Normal View History

2023-03-06 14:48:14 +01:00
/* Check that TRT happens for an uncaught non-abort signal, single thread.
#xerror:
#output: Unimplemented signal: 7\n
#output: program stopped with signal 4 (*).\n
*/
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <signal.h>
#include <unistd.h>
int main (void)
{
kill (getpid (), SIGBUS);
printf ("xyzzy\n");
exit (0);
}