xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/2003-08-18-SigSetJmp.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm %s  -o /dev/null
2 
3 #define _JBLEN ((9 * 2) + 3 + 16)
4 typedef int sigjmp_buf[_JBLEN + 1];
5 int sigsetjmp(sigjmp_buf env, int savemask);
6 sigjmp_buf B;
foo()7 int foo() {
8   sigsetjmp(B, 1);
9   bar();
10 }
11