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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [cris/] [c/] [sig1.c] - Blame information for rev 834

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
#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.