1*7ce1c4daSSami 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
6*7ce1c4daSSami Tolvanentarget triple = "x86_64-unknown-linux-gnu"
7*7ce1c4daSSami Tolvanen
8cee313d2SEric Christopherdefine [1 x i8*]* @source() {
9cee313d2SEric Christopher  ret [1 x i8*]* @g
10cee313d2SEric Christopher}
11cee313d2SEric Christopher
12c6e5c465SHans Wennborg; M0: @g.84f59439b469192440047efc8de357fb = external hidden constant [1 x i8*]{{$}}
13c6e5c465SHans Wennborg; M1: @g.84f59439b469192440047efc8de357fb = hidden constant [1 x i8*] [i8* bitcast (i64 (i8*)* @ok.84f59439b469192440047efc8de357fb to i8*)]
14cee313d2SEric Christopher@g = internal constant [1 x i8*] [
15cee313d2SEric Christopher  i8* bitcast (i64 (i8*)* @ok to i8*)
16cee313d2SEric Christopher], !type !0
17cee313d2SEric Christopher
18c6e5c465SHans Wennborg; M0: define hidden i64 @ok.84f59439b469192440047efc8de357fb
19c6e5c465SHans Wennborg; M1: define available_externally hidden i64 @ok.84f59439b469192440047efc8de357fb
20cee313d2SEric Christopherdefine internal i64 @ok(i8* %this) {
21cee313d2SEric Christopher  ret i64 42
22cee313d2SEric Christopher}
23cee313d2SEric Christopher
24cee313d2SEric Christopher!0 = !{i32 0, !"typeid"}
25