FileCheck-ify some debug info scope related tests.
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 24 Jan 2013 22:47:48 +0000 (22:47 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 24 Jan 2013 22:47:48 +0000 (22:47 +0000)
llvm-svn: 173379

clang/test/CodeGen/2010-02-16-DbgScopes.c
clang/test/CodeGen/2010-03-5-LexicalScope.c

index b11f920..58bda9a 100644 (file)
@@ -1,5 +1,10 @@
-// RUN: %clang_cc1 -emit-llvm -g < %s | grep  lexical | count 5
+// RUN: %clang_cc1 -emit-llvm -g < %s | FileCheck %s
 // Test to check number of lexical scope identified in debug info.
+// CHECK: DW_TAG_lexical_block
+// CHECK: DW_TAG_lexical_block
+// CHECK: DW_TAG_lexical_block
+// CHECK: DW_TAG_lexical_block
+// CHECK: DW_TAG_lexical_block
 
 extern int bar();
 extern void foobar();
index 0f63ff6..511372d 100644 (file)
@@ -1,4 +1,7 @@
-// RUN: %clang_cc1 -emit-llvm -O0 -g %s -o - | grep DW_TAG_lexical_block | count 3
+// RUN: %clang_cc1 -emit-llvm -O0 -g %s -o - | FileCheck %s
+// CHECK: DW_TAG_lexical_block
+// CHECK: DW_TAG_lexical_block
+// CHECK: DW_TAG_lexical_block
 int foo(int i) {
        if (i) {
                int j = 2;