binutils-gdb/sim/testsuite/cris/c/sig5.c

19 lines
354 B
C
Raw Normal View History

/* 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);
}