Home | History | Annotate | Download | only in tests
      1 #include <stdio.h>
      2 #include <stdlib.h>
      3 #include <signal.h>
      4 #include <setjmp.h>
      5 #include <assert.h>
      6 #include <string.h>
      7 
      8 static jmp_buf TTT_jmpbuf;
      9 
     10 void SEGV_handler(int signum)
     11 {
     12    //fprintf(stderr, "segv caught\n");
     13    __builtin_longjmp(TTT_jmpbuf, 1);
     14 }
     15 
     16 int up[10], up2[10];
     17 
     18