1; Check that "internalizedfn" is re-externalized prior to CodeGen when 2; setShouldRestoreGlobalsLinkage is enabled. 3; 4; RUN: llvm-as < %s > %t1 5; RUN: llvm-lto -exported-symbol=preservedfn -restore-linkage -filetype=asm -o - %t1 | FileCheck %s 6; 7; CHECK: .globl internalizedfn 8 9target triple = "x86_64-unknown-linux-gnu" 10 11declare void @f() 12 13define void @internalizedfn() noinline { 14entry: 15 call void @f() 16 ret void 17} 18 19define void @preservedfn() { 20entry: 21 call void @internalizedfn() 22 ret void 23} 24 25