1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-30 15:32:52 +01:00
llvm-mirror/test/Transforms/StripSymbols/2007-01-15-llvm.used.ll
Daniel Dunbar 61043be3ae Update test.
llvm-svn: 81314
2009-09-09 02:41:50 +00:00

16 lines
421 B
LLVM

; RUN: opt < %s -strip -S | grep foo | count 2
; RUN: opt < %s -strip -S | 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
}