comparison gcc/testsuite/gcc.dg/torture/pr57147-3.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* { dg-do compile } */
2
3 typedef char * ptr_t;
4 struct __jmp_buf_tag {
5 };
6 typedef struct __jmp_buf_tag sigjmp_buf[1];
7 sigjmp_buf GC_jmp_buf;
8 int __sigsetjmp (sigjmp_buf, int);
9 void GC_set_and_save_fault_handler (void (*)(int));
10 void GC_fault_handler(int sig)
11 {
12 }
13 void GC_setup_temporary_fault_handler() {
14 GC_set_and_save_fault_handler(GC_fault_handler);
15 }
16 ptr_t GC_find_limit(ptr_t p)
17 {
18 GC_setup_temporary_fault_handler();
19 if (__sigsetjmp (GC_jmp_buf, 1) == 0)
20 for (;;)
21 ;
22 }