From 23c0fcee359d1252681c271315b60e17e6018889 Mon Sep 17 00:00:00 2001 From: Tim Northover Date: Mon, 24 Nov 2014 21:03:34 +0000 Subject: [PATCH] testing: make test use FileCheck The "grep internal | count" was fragile when your source or remote paths could contain the word "internal". git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@222685 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/merge-statics.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/CodeGen/merge-statics.c b/test/CodeGen/merge-statics.c index 6716935c4d..4baf902488 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 -- 2.40.0