llvm.org GIT mirror llvm / 7feaf76
Filecheckize some tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189079 91177308-0d34-0410-b5e6-96231b3b80d8 Michael Gottesman 6 years ago
2 changed file(s) with 10 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
None ; RUN: opt < %s -strip -S | grep foo | count 2
1 ; RUN: opt < %s -strip -S | grep bar | count 2
0 ; RUN: opt < %s -strip -S | FileCheck %s
1
2 ; CHECK: foo
3 ; CHECK: bar
4 ; CHECK: foo
5 ; CHECK: bar
6
27 @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]
38 @foo = internal constant i32 41 ; [#uses=1]
49
None ; RUN: opt -strip-debug < %s | llvm-dis | grep -v llvm.dbg
0 ; RUN: opt -strip-debug < %s -S | FileCheck %s
1
2 ; CHECK-NOT: llvm.dbg
13
24 @x = common global i32 0 ; [#uses=0]
35