aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/cris/c/sig5.c
blob: f80da2b69906825c8394470102fd151ab8af43b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* 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);
}