summaryrefslogtreecommitdiff
path: root/sim/testsuite/sim/cris/c/sig5.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/testsuite/sim/cris/c/sig5.c')
-rw-r--r--sim/testsuite/sim/cris/c/sig5.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/sim/testsuite/sim/cris/c/sig5.c b/sim/testsuite/sim/cris/c/sig5.c
new file mode 100644
index 00000000000..674621e1722
--- /dev/null
+++ b/sim/testsuite/sim/cris/c/sig5.c
@@ -0,0 +1,16 @@
+/* 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>
+int main (void)
+{
+ kill (getpid (), SIGBUS);
+ printf ("xyzzy\n");
+ exit (0);
+}