summaryrefslogtreecommitdiffstats
path: root/llvm/test/ThinLTO/X86/linkonce_odr_unnamed_addr.ll
blob: 84bea3cbb9d95a63da0519b44c65b2e45280b613 (plain)
1
2
3
4
5
6
7
8
9
10
; This test ensures that when linkonce_odr + unnamed_addr symbols promoted to
; weak symbols, it preserves the auto hide property.

; RUN: opt -module-summary %s -o %t.bc
; RUN: opt -module-summary %s -o %t2.bc
; RUN: llvm-lto -thinlto-action=thinlink -o %t3.bc %t.bc %t2.bc
; RUN: llvm-lto -thinlto-action=promote %t.bc -thinlto-index=%t3.bc -o - | llvm-dis -o - | FileCheck %s

; CHECK: @linkonceodrunnamed = weak_odr hidden unnamed_addr constant i32 0
@linkonceodrunnamed = linkonce_odr unnamed_addr constant i32 0
OpenPOWER on IntegriCloud