blob: 39412e5f84ee4d03ec5ced1d46ac795eaa5d28c4 [file] [log] [blame]
Reid Spencerdcb925e2007-04-15 20:08:37 +00001/* RUN: %llvmgcc -xc %s -c -o - | llvm-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}