testing: make test use FileCheck

The "grep internal | count" was fragile when your source or remote paths could
contain the word "internal".

llvm-svn: 222685
This commit is contained in:
Tim Northover 2014-11-24 21:03:34 +00:00
parent 64ac12d626
commit bdcc1ed66d
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
// RUN: %clang_cc1 < %s -emit-llvm | grep internal | count 1
// RUN: %clang_cc1 < %s -emit-llvm | FileCheck %s
// The two decls for 'a' should merge into one llvm GlobalVariable.
@ -11,3 +11,6 @@ static struct s a = {
10
};
// CHECK-NOT: internal global
// CHECK: @a = internal global %struct.s { i32 10 }
// CHECK-NOT: internal-global