adjust test to make it more robust
authorChris Lattner <sabre@nondot.org>
Sun, 1 Mar 2009 00:24:40 +0000 (00:24 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 1 Mar 2009 00:24:40 +0000 (00:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65739 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/DeadArgElim/keepalive.ll

index 678033e2b56ed53a95b4a6b84f04c25ed395bed6..899ebd93a469c3e3cac83f1bc8dfc971d06611b5 100644 (file)
@@ -1,6 +1,8 @@
 ; RUN: llvm-as < %s | opt -deadargelim | llvm-dis > %t
-; RUN: cat %t | grep {define internal zeroext i32 @test1() nounwind}
-; RUN: cat %t | grep {define internal \<\{ i32, i32 \}\> @test}
+; RUN: grep {define internal zeroext i32 @test1() nounwind} %t
+; RUN: grep {define internal %Ty @test2} %t
+
+%Ty = type <{ i32, i32 }>
 
 ; Check if the pass doesn't modify anything that doesn't need changing. We feed
 ; an unused argument to each function to lure it into changing _something_ about