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