1; RUN: llvm-as -function-summary %s -o %t.o
2; RUN: llvm-as -function-summary %p/Inputs/thinlto.ll -o %t2.o
3
4; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
5; RUN:    --plugin-opt=thinlto \
6; RUN:    -shared %t.o %t2.o -o %t3
7; RUN: llvm-bcanalyzer -dump %t3.thinlto.bc | FileCheck %s --check-prefix=COMBINED
8; RUN: not test -e %t3
9
10; COMBINED: <MODULE_STRTAB_BLOCK
11; COMBINED-NEXT: <ENTRY {{.*}} record string = '{{.*}}/test/tools/gold/X86/Output/thinlto.ll.tmp{{.*}}.o'
12; COMBINED-NEXT: <ENTRY {{.*}} record string = '{{.*}}/test/tools/gold/X86/Output/thinlto.ll.tmp{{.*}}.o'
13; COMBINED-NEXT: </MODULE_STRTAB_BLOCK
14; COMBINED-NEXT: <FUNCTION_SUMMARY_BLOCK
15; COMBINED-NEXT: <COMBINED_ENTRY
16; COMBINED-NEXT: <COMBINED_ENTRY
17; COMBINED-NEXT: </FUNCTION_SUMMARY_BLOCK
18; COMBINED-NEXT: <VALUE_SYMTAB
19; COMBINED-NEXT: <COMBINED_FNENTRY {{.*}} record string = '{{f|g}}'
20; COMBINED-NEXT: <COMBINED_FNENTRY {{.*}} record string = '{{f|g}}'
21; COMBINED-NEXT: </VALUE_SYMTAB
22
23define void @f() {
24entry:
25  ret void
26}
27