OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gdb/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [cris/] [c/] [sig1.c] - Blame information for rev 26

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 26 jlechner
#include <stdio.h>
2
#include <signal.h>
3
#include <stdlib.h>
4
 
5
void
6
leave (int n)
7
{
8
  exit (0);
9
}
10
 
11
int
12
main (void)
13
{
14
  /* Check that the sigaction syscall (for signal) is interpreted, though
15
     possibly ignored.  */
16
  signal (SIGFPE, leave);
17
 
18
  printf ("pass\n");
19
  exit (0);
20
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.