* sim/cris: New directory with C and assembly tests for the CRIS
[deliverable/binutils-gdb.git] / sim / testsuite / sim / cris / c / sig7.c
CommitLineData
5e1f6430
HPN
1/* Check unsupported case of sigaction syscall.
2#notarget: cris*-*-elf
3#xerror:
4#output: Unimplemented rt_sigaction syscall (0x8, 0x3df*\n
5#output: program stopped with signal 4.\n
6*/
7#include <stdio.h>
8#include <signal.h>
9#include <stdlib.h>
10
11int
12main (void)
13{
14 struct sigaction sa;
15 sa.sa_sigaction = NULL;
16 sa.sa_flags = SA_RESTART | SA_SIGINFO;
17 sigemptyset (&sa.sa_mask);
18
19 if (sigaction (SIGFPE, &sa, NULL) != 0)
20 abort ();
21
22 printf ("xyzzy\n");
23 exit (0);
24}
This page took 0.025347 seconds and 4 git commands to generate.