You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
422 B
21 lines
422 B
; 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]
|
|
|
|
define internal i32 @bar() nounwind {
|
|
entry:
|
|
ret i32 42
|
|
}
|
|
|
|
define i32 @main() nounwind {
|
|
entry:
|
|
ret i32 0
|
|
}
|
|
|