]> granicus.if.org Git - clang/commitdiff
FileCheck-ize.
authorEric Christopher <echristo@apple.com>
Wed, 11 Jul 2012 01:49:24 +0000 (01:49 +0000)
committerEric Christopher <echristo@apple.com>
Wed, 11 Jul 2012 01:49:24 +0000 (01:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160032 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/destructor-debug-info.cpp

index 9e32275d3394927c30fab0d72e992c80cdc5f86c..385c86d9be19f8619b06ff33e40d1ca093443af1 100644 (file)
@@ -1,6 +1,5 @@
-// RUN: %clang_cc1 -g -S -emit-llvm -o %t %s
-// RUN: grep "i32 20, i32 3, metadata" %t | count 1
-// Check there is a line number entry for line 20 where b1 is destructed.
+// RUN: %clang_cc1 -g -S -emit-llvm %s -o - | FileCheck %s
+
 class A { int a; };
 class B {
 public:
@@ -19,3 +18,5 @@ void foo() {
     fn (b1);
   }
 }
+// Check there is a line number entry for line 19 where b1 is destructed.
+// CHECK: i32 19, i32 3, metadata