Use opt -S instead of piping bitcode output through llvm-dis.
[oota-llvm.git] / test / Transforms / StripSymbols / 2007-01-15-llvm.used.ll
1 ; RUN: opt %s -strip -S | grep foo | count 2
2 ; RUN: opt %s -strip -S | grep bar | count 2
3 @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]
4 @foo = internal constant i32 41         ; <i32*> [#uses=1]
5
6 define internal i32 @bar() nounwind  {
7 entry:
8         ret i32 42
9 }
10
11 define i32 @main() nounwind  {
12 entry:
13         ret i32 0
14 }
15