[cfe-commits] r136309 - /cfe/trunk/test/CodeGen/2003-08-18-SigSetJmp.c

Eric Christopher echristo at apple.com
Wed Jul 27 17:28:22 PDT 2011


Author: echristo
Date: Wed Jul 27 19:28:22 2011
New Revision: 136309

URL: http://llvm.org/viewvc/llvm-project?rev=136309&view=rev
Log:
Remove the need for a header and specify a triple so that the type
sizes make sense.

Modified:
    cfe/trunk/test/CodeGen/2003-08-18-SigSetJmp.c

Modified: cfe/trunk/test/CodeGen/2003-08-18-SigSetJmp.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/2003-08-18-SigSetJmp.c?rev=136309&r1=136308&r2=136309&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/2003-08-18-SigSetJmp.c (original)
+++ cfe/trunk/test/CodeGen/2003-08-18-SigSetJmp.c Wed Jul 27 19:28:22 2011
@@ -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);





More information about the cfe-commits mailing list