]> granicus.if.org Git - clang/commitdiff
Fix test in two ways: remove incorrect comment (the intrinsic generated now
authorEli Bendersky <eliben@google.com>
Wed, 8 May 2013 20:58:01 +0000 (20:58 +0000)
committerEli Bendersky <eliben@google.com>
Wed, 8 May 2013 20:58:01 +0000 (20:58 +0000)
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

test/CodeGen/2003-08-06-BuiltinSetjmpLongjmp.c

index 12bce268cfac9c9ca2ba05f9ff8d91ce51ab41ad..3aa5c003973f4629f89c20b5dc188375ec281d76 100644 (file)
@@ -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);
 }