summaryrefslogtreecommitdiffstats
path: root/llvm/test/Linker/linknamedmdnode.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
commit1cc814a8e6f4595e6ccfb1c102db2054e98e4311 (patch)
tree1c96767f6e8a3ea8dbca0a96751ed8640a60077b /llvm/test/Linker/linknamedmdnode.ll
parenta04e5e213b2a4ab2cd0fda7725efc7158a095f6c (diff)
downloadbcm5719-llvm-1cc814a8e6f4595e6ccfb1c102db2054e98e4311.tar.gz
bcm5719-llvm-1cc814a8e6f4595e6ccfb1c102db2054e98e4311.zip
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). llvm-svn: 179102
Diffstat (limited to 'llvm/test/Linker/linknamedmdnode.ll')
-rw-r--r--llvm/test/Linker/linknamedmdnode.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/Linker/linknamedmdnode.ll b/llvm/test/Linker/linknamedmdnode.ll
index e6b779f1fc5..73e7554a907 100644
--- a/llvm/test/Linker/linknamedmdnode.ll
+++ b/llvm/test/Linker/linknamedmdnode.ll
@@ -1,6 +1,7 @@
; RUN: llvm-as < %s > %t.bc
; RUN: llvm-as < %p/linknamedmdnode2.ll > %t2.bc
-; RUN: llvm-link %t.bc %t2.bc -S | grep "!llvm.stuff = !{!0, !1}"
+; RUN: llvm-link %t.bc %t2.bc -S | FileCheck %s
+; CHECK: !llvm.stuff = !{!0, !1}
!0 = metadata !{i32 42}
!llvm.stuff = !{!0}
OpenPOWER on IntegriCloud