2013-05-09 04:58:01 +08:00
|
|
|
/* RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
|
2011-07-27 06:17:02 +08:00
|
|
|
*
|
2013-05-09 04:58:01 +08:00
|
|
|
* __builtin_longjmp/setjmp should get transformed into intrinsics.
|
2011-07-27 06:17:02 +08:00
|
|
|
*/
|
|
|
|
|
2013-05-09 04:58:01 +08:00
|
|
|
// CHECK-NOT: builtin_longjmp
|
|
|
|
|
2011-07-27 06:17:02 +08:00
|
|
|
void jumpaway(int *ptr) {
|
|
|
|
__builtin_longjmp(ptr,1);
|
|
|
|
}
|
|
|
|
|
|
|
|
int main(void) {
|
|
|
|
__builtin_setjmp(0);
|
|
|
|
jumpaway(0);
|
|
|
|
}
|