; REQUIRES: x86 ; Basic ThinLTO tests. ; RUN: opt -thinlto-bc %s -o %t1.obj ; RUN: opt -thinlto-bc %p/Inputs/thinlto.ll -o %t2.obj ; RUN: opt -thinlto-bc %p/Inputs/thinlto-empty.ll -o %t3.obj ; Ensure lld generates an index and not a binary if requested. ; RUN: rm -f %t4.exe ; RUN: lld-link -thinlto-index-only -entry:main %t1.obj %t2.obj -out:%t4.exe ; RUN: llvm-bcanalyzer -dump %t1.obj.thinlto.bc | FileCheck %s --check-prefix=BACKEND1 ; RUN: llvm-bcanalyzer -dump %t2.obj.thinlto.bc | FileCheck %s --check-prefix=BACKEND2 ; RUN: not test -e %t4.exe ; The backend index for this module contains summaries from itself and ; Inputs/thinlto.ll, as it imports from the latter. ; BACKEND1: ; BACKEND2-NEXT: