llvm-6502/test/Transforms/StripSymbols/2007-01-15-llvm.used.ll
Devang Patel 8c231e5dda Do not strip llvm.used values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46045 91177308-0d34-0410-b5e6-96231b3b80d8
2008-01-16 03:33:05 +00:00

16 lines
457 B
LLVM

; RUN: llvm-as < %s | opt -strip | llvm-dis | grep foo | count 2
; RUN: llvm-as < %s | opt -strip | llvm-dis | grep bar | count 2
@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
}