mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Add a small test showing when a linkonce_odr symbol can be hidden.
llvm-svn: 214311
This commit is contained in:
parent
e21aa5698e
commit
baab42a761
@ -17,14 +17,37 @@
|
||||
|
||||
target triple = "x86_64-unknown-linux-gnu"
|
||||
|
||||
; CHECK: define internal void @f()
|
||||
define hidden void @f() {
|
||||
; CHECK: define internal void @f1()
|
||||
define hidden void @f1() {
|
||||
ret void
|
||||
}
|
||||
|
||||
; CHECK: define hidden void @g()
|
||||
define hidden void @g() {
|
||||
; CHECK: define hidden void @f2()
|
||||
define hidden void @f2() {
|
||||
ret void
|
||||
}
|
||||
|
||||
@llvm.used = appending global [1 x i8*] [ i8* bitcast (void ()* @g to i8*)]
|
||||
@llvm.used = appending global [1 x i8*] [ i8* bitcast (void ()* @f2 to i8*)]
|
||||
|
||||
; CHECK: define void @f3()
|
||||
define void @f3() {
|
||||
call void @f4()
|
||||
ret void
|
||||
}
|
||||
|
||||
; CHECK: define internal void @f4()
|
||||
define linkonce_odr void @f4() {
|
||||
ret void
|
||||
}
|
||||
|
||||
; CHECK: define linkonce_odr void @f5()
|
||||
define linkonce_odr void @f5() {
|
||||
ret void
|
||||
}
|
||||
@g5 = global void()* @f5
|
||||
|
||||
; CHECK: define internal void @f6() unnamed_addr
|
||||
define linkonce_odr void @f6() unnamed_addr {
|
||||
ret void
|
||||
}
|
||||
@g6 = global void()* @f6
|
||||
|
Loading…
x
Reference in New Issue
Block a user