diff options
author | Eric Christopher <echristo@apple.com> | 2011-07-28 00:28:22 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-07-28 00:28:22 +0000 |
commit | 95ee667503b8b3123951242e3f7b93598cb9f9b9 (patch) | |
tree | fb24132bf695a8c578cc32d0f4e1cae0faf51f20 | |
parent | 55528b2eedb2b22bbd08dcf0f0baec22f64100d9 (diff) |
Remove the need for a header and specify a triple so that the type
sizes make sense.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136309 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/2003-08-18-SigSetJmp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/CodeGen/2003-08-18-SigSetJmp.c b/test/CodeGen/2003-08-18-SigSetJmp.c index 63c4127e0d..1b1b18f6ee 100644 --- a/test/CodeGen/2003-08-18-SigSetJmp.c +++ b/test/CodeGen/2003-08-18-SigSetJmp.c @@ -1,8 +1,8 @@ -// RUN: %clang -S -emit-llvm %s -o /dev/null -// XFAIL: mingw,win32 - -#include <setjmp.h> +// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm %s -o /dev/null +#define _JBLEN ((9 * 2) + 3 + 16) +typedef int sigjmp_buf[_JBLEN + 1]; +int sigsetjmp(sigjmp_buf env, int savemask); sigjmp_buf B; int foo() { sigsetjmp(B, 1); |