Home | History | Annotate | Line # | Download | only in c
      1 #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 }
     21