printf oob regression test
[libc-test] / src / api / setjmp.c
index c4178c3..afcf164 100644 (file)
@@ -3,11 +3,15 @@
 static void f()
 {
 T(jmp_buf)
-void(*p_longjmp)(jmp_buf,int) = longjmp;
-int(*p_setjmp)(jmp_buf) = setjmp;
+{void(*p)(jmp_buf,int) = longjmp;}
+{int(*p)(jmp_buf) = setjmp;}
 #ifdef _POSIX_C_SOURCE
 T(sigjmp_buf)
-void(*p_siglongjmp)(sigjmp_buf,int) = siglongjmp;
-int(*p_sigsetjmp)(sigjmp_buf,int) = sigsetjmp;
+{void(*p)(sigjmp_buf,int) = siglongjmp;}
+{int(*p)(sigjmp_buf,int) = sigsetjmp;}
+#endif
+#if defined _XOPEN_SOURCE && defined OBSOLETE
+{void(*p)(jmp_buf,int) = _longjmp;}
+{int(*p)(jmp_buf) = _setjmp;}
 #endif
 }