From d7170ea5a8faf37b94884c067dfbceea01762498 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Tue, 9 Apr 2013 16:51:13 +0000 Subject: Rewrite test/Linker tests to use FileCheck instead of grep. Some translations here are not 1x1 because there are grep|grep chains that are non-trivial to implement in terms of FileCheck features. I made an effort for the tests to remain as similar as possible; do let me know if you notice anything fishy. The good news are that some buggy tests were fixed (grep | not grep - a bug waiting to happen). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179102 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Linker/2003-04-23-LinkOnceLost.ll | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/Linker/2003-04-23-LinkOnceLost.ll') diff --git a/test/Linker/2003-04-23-LinkOnceLost.ll b/test/Linker/2003-04-23-LinkOnceLost.ll index 98a943a534..e4528906e0 100644 --- a/test/Linker/2003-04-23-LinkOnceLost.ll +++ b/test/Linker/2003-04-23-LinkOnceLost.ll @@ -4,7 +4,8 @@ ; RUN: echo " define linkonce void @foo() { ret void } " | \ ; RUN: llvm-as -o %t.2.bc ; RUN: llvm-as %s -o %t.1.bc -; RUN: llvm-link %t.1.bc %t.2.bc -S | grep foo | grep linkonce +; RUN: llvm-link %t.1.bc %t.2.bc -S | FileCheck %s +; CHECK: linkonce{{.*}}foo declare void @foo() -- cgit v1.2.3