blob: 4bdbf988bdcbd5de541504213f03d69ca568f7df [file] [log] [blame]
Brian Gaeke2852c4d2003-11-06 21:13:45 +00001/* RUN: %llvmgcc -xc %s -c -o - | dis | not grep __builtin_
Chris Lattner51a754e2003-08-06 18:26:19 +00002 *
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}