blob: 12bce268cfac9c9ca2ba05f9ff8d91ce51ab41ad [file] [log] [blame]
Eric Christopher3883e662011-07-26 22:17:02 +00001/* RUN: %clang_cc1 %s -emit-llvm -o - | not grep __builtin_
2 *
3 * __builtin_longjmp/setjmp should get transformed into llvm.setjmp/longjmp
4 * just like explicit setjmp/longjmp calls are.
5 */
6
7void jumpaway(int *ptr) {
8 __builtin_longjmp(ptr,1);
9}
10
11int main(void) {
12 __builtin_setjmp(0);
13 jumpaway(0);
14}