Filecheckize some tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189079 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Michael Gottesman 2013-08-23 00:23:28 +00:00
parent e0e66b9dfa
commit 7feaf762f4
2 changed files with 10 additions and 3 deletions

View 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]

View 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]