Filecheckize some tests.
authorMichael Gottesman <mgottesman@apple.com>
Fri, 23 Aug 2013 00:23:28 +0000 (00:23 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Fri, 23 Aug 2013 00:23:28 +0000 (00:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189079 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/StripSymbols/2007-01-15-llvm.used.ll
test/Transforms/StripSymbols/2010-06-30-StripDebug.ll

index 69febc35df765decba05c9a1cf1ef745f9fdf9fe..438fa96b41ef3c1f98885c37082a901ff40cf41e 100644 (file)
@@ -1,5 +1,10 @@
-; RUN: opt < %s -strip -S | grep foo | count 2
-; RUN: opt < %s -strip -S | grep bar | count 2
+; RUN: opt < %s -strip -S | FileCheck %s
+
+; CHECK: foo
+; CHECK: bar
+; CHECK: foo
+; CHECK: bar
+
 @llvm.used = appending global [2 x i8*] [ i8* bitcast (i32* @foo to i8*), i8* bitcast (i32 ()* @bar to i8*) ], section "llvm.metadata"         ; <[2 x i8*]*> [#uses=0]
 @foo = internal constant i32 41                ; <i32*> [#uses=1]
 
index 0181c9b93842861b5ecfaeec8e83d7866585ea94..bba4016f53165058b7b525494a428ad48e754b33 100644 (file)
@@ -1,4 +1,6 @@
-; RUN: opt -strip-debug < %s | llvm-dis | grep -v llvm.dbg
+; RUN: opt -strip-debug < %s -S | FileCheck %s
+
+; CHECK-NOT: llvm.dbg
 
 @x = common global i32 0                          ; <i32*> [#uses=0]