forked from OSchip/llvm-project
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:
parent
64ac12d626
commit
bdcc1ed66d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue