diff options
Diffstat (limited to 'sim/testsuite/sim/cris/c/kill2.c')
-rw-r--r-- | sim/testsuite/sim/cris/c/kill2.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sim/testsuite/sim/cris/c/kill2.c b/sim/testsuite/sim/cris/c/kill2.c new file mode 100644 index 00000000000..183091cf664 --- /dev/null +++ b/sim/testsuite/sim/cris/c/kill2.c @@ -0,0 +1,16 @@ +/* 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> +int +main (void) +{ + kill (getpid (), SIGABRT); + printf ("undead\n"); + exit (1); +} |