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 | 35d0e27b78c59ce89ffff0ac0d68da2c92476ae6 (patch) | |
tree | 87f3f21c89d0fa72562741cfd2ff6f641b6bb91d | |
parent | bbcf8548cbdbfcf7adbed249cf9370cc99366c8d (diff) | |
download | bcm5719-llvm-35d0e27b78c59ce89ffff0ac0d68da2c92476ae6.tar.gz bcm5719-llvm-35d0e27b78c59ce89ffff0ac0d68da2c92476ae6.zip |
FileCheck-ify some debug info scope related tests.
llvm-svn: 173379
-rw-r--r-- | clang/test/CodeGen/2010-02-16-DbgScopes.c | 7 | ||||
-rw-r--r-- | clang/test/CodeGen/2010-03-5-LexicalScope.c | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/clang/test/CodeGen/2010-02-16-DbgScopes.c b/clang/test/CodeGen/2010-02-16-DbgScopes.c index b11f920156e..58bda9a2d7c 100644 --- a/clang/test/CodeGen/2010-02-16-DbgScopes.c +++ b/clang/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/clang/test/CodeGen/2010-03-5-LexicalScope.c b/clang/test/CodeGen/2010-03-5-LexicalScope.c index 0f63ff6914b..511372d1583 100644 --- a/clang/test/CodeGen/2010-03-5-LexicalScope.c +++ b/clang/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; |