diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-01-24 22:47:48 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-01-24 22:47:48 +0000 |
commit | 75c12bf46d5175060d0adeab992a886f22ef7ef8 (patch) | |
tree | f36751be8a6e941d6a607e255393a94806774e21 | |
parent | 8f6284750822e2062da583415164467f57cdf214 (diff) |
FileCheck-ify some debug info scope related tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173379 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/2010-02-16-DbgScopes.c | 7 | ||||
-rw-r--r-- | test/CodeGen/2010-03-5-LexicalScope.c | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/test/CodeGen/2010-02-16-DbgScopes.c b/test/CodeGen/2010-02-16-DbgScopes.c index b11f920156..58bda9a2d7 100644 --- a/test/CodeGen/2010-02-16-DbgScopes.c +++ b/test/CodeGen/2010-02-16-DbgScopes.c @@ -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(); diff --git a/test/CodeGen/2010-03-5-LexicalScope.c b/test/CodeGen/2010-03-5-LexicalScope.c index 0f63ff6914..511372d158 100644 --- a/test/CodeGen/2010-03-5-LexicalScope.c +++ b/test/CodeGen/2010-03-5-LexicalScope.c @@ -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; |