summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-02-12 18:19:53 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-02-12 18:19:53 +0000
commit43186a4ea9fe51ca965faf9f04f7add6799ab6c2 (patch)
treea54ea2489de7ba27f6a627f9e243e6f8e8e59aa4 /test
parent2e3066b319866fbc8798bd0e56b535ba1f82620d (diff)
downloadllvm-43186a4ea9fe51ca965faf9f04f7add6799ab6c2.tar.gz
llvm-43186a4ea9fe51ca965faf9f04f7add6799ab6c2.tar.bz2
llvm-43186a4ea9fe51ca965faf9f04f7add6799ab6c2.tar.xz
tests: FileCheckize
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125441 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/SimplifyLibCalls/Printf.ll8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/Transforms/SimplifyLibCalls/Printf.ll b/test/Transforms/SimplifyLibCalls/Printf.ll
index 858a09c96f..d68928ee6b 100644
--- a/test/Transforms/SimplifyLibCalls/Printf.ll
+++ b/test/Transforms/SimplifyLibCalls/Printf.ll
@@ -1,6 +1,8 @@
-; RUN: opt < %s -simplify-libcalls -S | grep putchar
-; RUN: opt < %s -simplify-libcalls -S | \
-; RUN: not grep {call.*printf}
+; RUN: opt < %s -simplify-libcalls -S -o %t
+; RUN: FileCheck < %t %s
+
+; CHECK-NOT: call{{.*}}printf
+; CHECK: putchar
@str = internal constant [13 x i8] c"hello world\0A\00" ; <[13 x i8]*> [#uses=1]
@str1 = internal constant [2 x i8] c"h\00" ; <[2 x i8]*> [#uses=1]