Skip to content
Snippets Groups Projects
Commit 7a92c895 authored by Jyotsna Verma's avatar Jyotsna Verma
Browse files

Remove setjmp.h header file from Sema/return.c test and include necessary

declarations explicitly in the test.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179604 91177308-0d34-0410-b5e6-96231b3b80d8
parent b004a8e5
No related branches found
No related tags found
No related merge requests found
......@@ -197,9 +197,14 @@ int test29() {
exit(1);
}
#ifndef __hexagon__
#include <setjmp.h>
// Include these declarations here explicitly so we don't depend on system headers.
typedef struct __jmp_buf_tag{} jmp_buf[1];
extern void longjmp (struct __jmp_buf_tag __env[1], int __val) __attribute__ ((noreturn));
extern void _longjmp (struct __jmp_buf_tag __env[1], int __val) __attribute__ ((noreturn));
jmp_buf test30_j;
int test30() {
if (j)
longjmp(test30_j, 1);
......@@ -210,7 +215,6 @@ int test30() {
_longjmp(test30_j, 1);
#endif
}
#endif
typedef void test31_t(int status);
void test31(test31_t *callback __attribute__((noreturn)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment