Brian Gaeke | 2852c4d | 2003-11-06 21:13:45 +0000 | [diff] [blame] | 1 | /* RUN: %llvmgcc -xc %s -c -o - | dis | not grep __builtin_ |
Chris Lattner | 51a754e | 2003-08-06 18:26:19 +0000 | [diff] [blame] | 2 | * |
3 | * __builtin_longjmp/setjmp should get transformed into llvm.setjmp/longjmp | ||||
4 | * just like explicit setjmp/longjmp calls are. | ||||
5 | */ | ||||
6 | |||||
7 | void jumpaway(int *ptr) { | ||||
8 | __builtin_longjmp(ptr,1); | ||||
9 | } | ||||
10 | |||||
11 | int main(void) { | ||||
12 | __builtin_setjmp(0); | ||||
13 | jumpaway(0); | ||||
14 | } |