From: Eli Bendersky Date: Wed, 8 May 2013 20:58:01 +0000 (+0000) Subject: Fix test in two ways: remove incorrect comment (the intrinsic generated now X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c8f270a75665f44f8570735762003a4319cbe19;p=clang Fix test in two ways: remove incorrect comment (the intrinsic generated now is of the llvm.sjlj.* flavore) and convert grep->FileCheck git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181468 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/2003-08-06-BuiltinSetjmpLongjmp.c b/test/CodeGen/2003-08-06-BuiltinSetjmpLongjmp.c index 12bce268cf..3aa5c00397 100644 --- a/test/CodeGen/2003-08-06-BuiltinSetjmpLongjmp.c +++ b/test/CodeGen/2003-08-06-BuiltinSetjmpLongjmp.c @@ -1,9 +1,10 @@ -/* RUN: %clang_cc1 %s -emit-llvm -o - | not grep __builtin_ +/* RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s * - * __builtin_longjmp/setjmp should get transformed into llvm.setjmp/longjmp - * just like explicit setjmp/longjmp calls are. + * __builtin_longjmp/setjmp should get transformed into intrinsics. */ +// CHECK-NOT: builtin_longjmp + void jumpaway(int *ptr) { __builtin_longjmp(ptr,1); }