summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/merge-statics.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/merge-statics.c')
-rw-r--r--test/CodeGen/merge-statics.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/CodeGen/merge-statics.c b/test/CodeGen/merge-statics.c
index 6716935..4baf902 100644
--- a/test/CodeGen/merge-statics.c
+++ b/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