projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64ac12d
)
testing: make test use FileCheck
author
Tim Northover
<tnorthover@apple.com>
Mon, 24 Nov 2014 21:03:34 +0000
(21:03 +0000)
committer
Tim Northover
<tnorthover@apple.com>
Mon, 24 Nov 2014 21:03:34 +0000
(21:03 +0000)
The "grep internal | count" was fragile when your source or remote paths could
contain the word "internal".
llvm-svn: 222685
clang/test/CodeGen/merge-statics.c
patch
|
blob
|
history
diff --git
a/clang/test/CodeGen/merge-statics.c
b/clang/test/CodeGen/merge-statics.c
index 6716935c4d12222ec4c1bad8a3ae66c443c2eb34..4baf902488c531edc2599a4c6bb49f2fc8822f62 100644
(file)
--- 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