aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/cris/c/kill2.c
blob: 0a79db0567a7f9227b43cb0612081aded118855f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Basic kill functionality test; suicide.
#xerror:
#output: program stopped with signal 6 (*).\n
*/

#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <signal.h>
#include <unistd.h>

int
main (void)
{
  kill (getpid (), SIGABRT);
  printf ("undead\n");
  exit (1);
}