[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / 2003-08-18-SigSetJmp.c
blob986bcb8bd74c38520dc46baa5add2627ace5b967
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm %s -o /dev/null
3 #define _JBLEN ((9 * 2) + 3 + 16)
4 typedef int sigjmp_buf[_JBLEN + 1];
5 int sigsetjmp(sigjmp_buf env, int savemask);
6 void bar(void);
7 sigjmp_buf B;
8 int foo(void) {
9 sigsetjmp(B, 1);
10 bar();