17ce1c4daSSami Tolvanen; REQUIRES: x86-registered-target 2cee313d2SEric Christopher; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t %s 3cee313d2SEric Christopher; RUN: llvm-modextract -b -n 0 -o - %t | llvm-dis | FileCheck --check-prefix=M0 %s 4cee313d2SEric Christopher; RUN: llvm-modextract -b -n 1 -o - %t | llvm-dis | FileCheck --check-prefix=M1 %s 5cee313d2SEric Christopher 67ce1c4daSSami Tolvanentarget triple = "x86_64-unknown-linux-gnu" 77ce1c4daSSami Tolvanen 8*9950ea66SNikita Popovdefine ptr @source() { 9*9950ea66SNikita Popov ret ptr @g 10cee313d2SEric Christopher} 11cee313d2SEric Christopher 12*9950ea66SNikita Popov; M0: @g.84f59439b469192440047efc8de357fb = external hidden constant [1 x ptr]{{$}} 13*9950ea66SNikita Popov; M1: @g.84f59439b469192440047efc8de357fb = hidden constant [1 x ptr] [ptr @ok.84f59439b469192440047efc8de357fb] 14*9950ea66SNikita Popov@g = internal constant [1 x ptr] [ 15*9950ea66SNikita Popov ptr @ok 16cee313d2SEric Christopher], !type !0 17cee313d2SEric Christopher 18c6e5c465SHans Wennborg; M0: define hidden i64 @ok.84f59439b469192440047efc8de357fb 19c6e5c465SHans Wennborg; M1: define available_externally hidden i64 @ok.84f59439b469192440047efc8de357fb 20*9950ea66SNikita Popovdefine internal i64 @ok(ptr %this) { 21cee313d2SEric Christopher ret i64 42 22cee313d2SEric Christopher} 23cee313d2SEric Christopher 24cee313d2SEric Christopher!0 = !{i32 0, !"typeid"} 25