1*aa0883b5SNico Weber; REQUIRES: x86 2*aa0883b5SNico Weber; RUN: rm -rf %t; split-file %s %t 3*aa0883b5SNico Weber 4*aa0883b5SNico Weber; RUN: opt -module-summary %t/f.ll -o %t/1.o 5*aa0883b5SNico Weber; RUN: opt -module-summary %t/g.ll -o %t/2.o 6*aa0883b5SNico Weber; RUN: opt -module-summary %t/empty.ll -o %t/3.o 7*aa0883b5SNico Weber 8*aa0883b5SNico Weber;; Ensure lld writes linked files to linked objects file 9*aa0883b5SNico Weber; RUN: %lld --thinlto-index-only=%t/1.txt -dylib %t/1.o %t/2.o %t/3.o -o /dev/null 10*aa0883b5SNico Weber; RUN: FileCheck %s < %t/1.txt 11*aa0883b5SNico Weber; CHECK: 1.o 12*aa0883b5SNico Weber; CHECK: 2.o 13*aa0883b5SNico Weber; CHECK: 3.o 14*aa0883b5SNico Weber 15*aa0883b5SNico Weber;--- f.ll 16*aa0883b5SNico Webertarget datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" 17*aa0883b5SNico Webertarget triple = "x86_64-apple-darwin" 18*aa0883b5SNico Weber 19*aa0883b5SNico Weberdeclare void @g(...) 20*aa0883b5SNico Weber 21*aa0883b5SNico Weberdefine void @f() { 22*aa0883b5SNico Weberentry: 23*aa0883b5SNico Weber call void (...) @g() 24*aa0883b5SNico Weber ret void 25*aa0883b5SNico Weber} 26*aa0883b5SNico Weber 27*aa0883b5SNico Weber;--- g.ll 28*aa0883b5SNico Webertarget datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" 29*aa0883b5SNico Webertarget triple = "x86_64-apple-darwin" 30*aa0883b5SNico Weber 31*aa0883b5SNico Weberdefine void @g() { 32*aa0883b5SNico Weberentry: 33*aa0883b5SNico Weber ret void 34*aa0883b5SNico Weber} 35*aa0883b5SNico Weber 36*aa0883b5SNico Weber;--- empty.ll 37*aa0883b5SNico Webertarget datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" 38*aa0883b5SNico Webertarget triple = "x86_64-apple-darwin" 39