1; RUN: opt < %s -strip -S | FileCheck %s
2; RUN: opt < %s -passes=strip -S | FileCheck %s
3
4; CHECK: foo
5; CHECK: bar
6; CHECK: foo
7; CHECK: bar
8
9@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]
10@foo = internal constant i32 41		; <i32*> [#uses=1]
11
12define internal i32 @bar() nounwind  {
13entry:
14	ret i32 42
15}
16
17define i32 @main() nounwind  {
18entry:
19	ret i32 0
20}
21
22