aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/StripSymbols/2007-01-15-llvm.used.ll
blob: 916f46df483dab7d0a464764ca4a382f19f6cc50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: opt %s -strip | llvm-dis | grep foo | count 2
; RUN: opt %s -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
}