summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/2003-08-06-BuiltinSetjmpLongjmp.c
blob: 3aa5c003973f4629f89c20b5dc188375ec281d76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* RUN: %clang_cc1  %s -emit-llvm -o - | FileCheck %s
 *
 * __builtin_longjmp/setjmp should get transformed into intrinsics.
 */

// CHECK-NOT: builtin_longjmp

void jumpaway(int *ptr) {
  __builtin_longjmp(ptr,1);
}
    
int main(void) {
  __builtin_setjmp(0);
  jumpaway(0);
}