aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2023-11-08 11:19:10 +0100
committerFlorian Weimer <fweimer@redhat.com>2023-11-08 13:33:41 +0100
commitfdd912690344fdfa6ef93d1e8923dae1bed3c965 (patch)
tree9adb8327aaf366a9ea18621ba00b819cb3a32ba3 /gcc
parentf7da59104c0f12e8eee0f56039a0c1a4ac8382f8 (diff)
downloadgcc-fdd912690344fdfa6ef93d1e8923dae1bed3c965.zip
gcc-fdd912690344fdfa6ef93d1e8923dae1bed3c965.tar.gz
gcc-fdd912690344fdfa6ef93d1e8923dae1bed3c965.tar.bz2
Improve C99 compatibility of gcc.dg/setjmp-7.c test
gcc/testsuite/ChangeLog: * gcc.dg/setjmp-7.c (_setjmp): Declare.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/setjmp-7.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/setjmp-7.c b/gcc/testsuite/gcc.dg/setjmp-7.c
index 44b5bcb..5795423 100644
--- a/gcc/testsuite/gcc.dg/setjmp-7.c
+++ b/gcc/testsuite/gcc.dg/setjmp-7.c
@@ -6,6 +6,7 @@ struct __jmp_buf_tag { };
typedef struct __jmp_buf_tag jmp_buf[1];
struct globals { jmp_buf listingbuf; };
extern struct globals *const ptr_to_globals;
+int _setjmp (struct __jmp_buf_tag __env[1]);
void foo()
{
if ( _setjmp ( ((*ptr_to_globals).listingbuf )))