1; RUN: opt -module-summary -o %t1.o %s 2; RUN: llvm-lto -thinlto -o %t %t1.o 3 4; RUN: opt -o %t2.o %S/Inputs/thinlto_backend.ll 5; RUN: llvm-cat -b -o %t1cat.o %t1.o %t2.o 6; RUN: cp %t1cat.o %t1.o 7; RUN: %clang -target x86_64-unknown-linux-gnu -O2 -o %t3.o -x ir %t1.o -c -fthinlto-index=%t.thinlto.bc 8; RUN: llvm-nm %t3.o | FileCheck --check-prefix=CHECK-OBJ %s 9; CHECK-OBJ: T f1 10; CHECK-OBJ: U f2 11 12target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 13target triple = "x86_64-unknown-linux-gnu" 14 15declare void @f2() 16 17define void @f1() { 18 call void @f2() 19 ret void 20} 21