diff options
Diffstat (limited to 'sim/testsuite/cris/c/kill2.c')
-rw-r--r-- | sim/testsuite/cris/c/kill2.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sim/testsuite/cris/c/kill2.c b/sim/testsuite/cris/c/kill2.c new file mode 100644 index 0000000..0a79db0 --- /dev/null +++ b/sim/testsuite/cris/c/kill2.c @@ -0,0 +1,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); +} |