aboutsummaryrefslogtreecommitdiffstats
path: root/test/Linker/2008-03-07-DroppedSection_b.ll
diff options
context:
space:
mode:
authorEli Bendersky <eliben@google.com>2013-04-09 16:51:13 +0000
committerEli Bendersky <eliben@google.com>2013-04-09 16:51:13 +0000
commitd7170ea5a8faf37b94884c067dfbceea01762498 (patch)
treed57708bb4e99aa69a6ad2e2f5b2c4ab14940d8c3 /test/Linker/2008-03-07-DroppedSection_b.ll
parentf6cfc15705140cc958b784a1bc98f7f0f09be6be (diff)
downloadexternal_llvm-d7170ea5a8faf37b94884c067dfbceea01762498.zip
external_llvm-d7170ea5a8faf37b94884c067dfbceea01762498.tar.gz
external_llvm-d7170ea5a8faf37b94884c067dfbceea01762498.tar.bz2
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
Diffstat (limited to 'test/Linker/2008-03-07-DroppedSection_b.ll')
-rw-r--r--test/Linker/2008-03-07-DroppedSection_b.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Linker/2008-03-07-DroppedSection_b.ll b/test/Linker/2008-03-07-DroppedSection_b.ll
index 63b64f6..9bcb80d 100644
--- a/test/Linker/2008-03-07-DroppedSection_b.ll
+++ b/test/Linker/2008-03-07-DroppedSection_b.ll
@@ -1,7 +1,8 @@
; RUN: llvm-as < %s > %t.bc
; RUN: llvm-as < %p/2008-03-07-DroppedSection_a.ll > %t2.bc
; RUN: llvm-link %t.bc %t2.bc -o %t3.bc
-; RUN: llvm-dis < %t3.bc | grep ".data.init_task"
+; RUN: llvm-dis < %t3.bc | FileCheck %s
+; CHECK: .data.init_task
; ModuleID = 'u.bc'
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"