Skip to content

Commit

Permalink
ELF: Add a test showing that the new local_unnamed_addr attribute can…
Browse files Browse the repository at this point in the history
… permit internalization.

Part of the fix for PR27553.

Differential Revision: http://reviews.llvm.org/D20259

llvm-svn: 272711
  • Loading branch information
pcc committed Jun 14, 2016
1 parent bcf909d commit a8bf23d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lld/test/ELF/lto/internalize-exportdyn.ll
Expand Up @@ -19,7 +19,11 @@ define hidden void @bar() {
ret void
}

define linkonce_odr void @zed() unnamed_addr {
define linkonce_odr void @zed() local_unnamed_addr {
ret void
}

define linkonce_odr void @zed2() unnamed_addr {
ret void
}

Expand All @@ -38,5 +42,6 @@ define linkonce_odr void @baz() {
; CHECK: define void @foo()
; CHECK: define internal void @bar()
; CHECK: define internal void @zed()
; CHECK: define internal void @zed2()
; CHECK: define weak_odr void @bah()
; CHECK: define weak_odr void @baz()

0 comments on commit a8bf23d

Please sign in to comment.