summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/merge-statics.c
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-11-24 21:03:34 +0000
committerTim Northover <tnorthover@apple.com>2014-11-24 21:03:34 +0000
commitbdcc1ed66ddeaba195a072e6def14bfb34917321 (patch)
treeb64eb838412040b60acbf1936daca1018aa1a4cf /clang/test/CodeGen/merge-statics.c
parent64ac12d6263278ae56075688319cd5db2f064b2e (diff)
downloadbcm5719-llvm-bdcc1ed66ddeaba195a072e6def14bfb34917321.tar.gz
bcm5719-llvm-bdcc1ed66ddeaba195a072e6def14bfb34917321.zip
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
Diffstat (limited to 'clang/test/CodeGen/merge-statics.c')
-rw-r--r--clang/test/CodeGen/merge-statics.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/test/CodeGen/merge-statics.c b/clang/test/CodeGen/merge-statics.c
index 6716935c4d1..4baf902488c 100644
--- a/clang/test/CodeGen/merge-statics.c
+++ b/clang/test/CodeGen/merge-statics.c
@@ -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
OpenPOWER on IntegriCloud