1 ; Check that "internalizedfn" is re-externalized prior to CodeGen when
2 ; setShouldRestoreGlobalsLinkage is enabled.
4 ; RUN: llvm-as < %s > %t1
5 ; RUN: llvm-lto -exported-symbol=preservedfn -restore-linkage -filetype=asm -o - %t1 | FileCheck %s
7 ; CHECK: .globl internalizedfn
9 target triple = "x86_64-unknown-linux-gnu"
13 define void @internalizedfn() noinline {
19 define void @preservedfn() {
21 call void @internalizedfn()