25 lines · plain
1; REQUIRES: x86-registered-target2; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t %s3; RUN: llvm-modextract -b -n 0 -o - %t | llvm-dis | FileCheck --check-prefix=M0 %s4; RUN: llvm-modextract -b -n 1 -o - %t | llvm-dis | FileCheck --check-prefix=M1 %s5 6target triple = "x86_64-unknown-linux-gnu"7 8define ptr @source() {9 ret ptr @g10}11 12; M0: @g.84f59439b469192440047efc8de357fb = external hidden constant [1 x ptr]{{$}}13; M1: @g.84f59439b469192440047efc8de357fb = hidden constant [1 x ptr] [ptr @ok.84f59439b469192440047efc8de357fb]14@g = internal constant [1 x ptr] [15 ptr @ok16], !type !017 18; M0: define hidden i64 @ok.84f59439b469192440047efc8de357fb19; M1: define available_externally hidden i64 @ok.84f59439b469192440047efc8de357fb20define internal i64 @ok(ptr %this) {21 ret i64 4222}23 24!0 = !{i32 0, !"typeid"}25