[LLD][COFF] Fix TypeServerSource matcher with more than one collision
[llvm-project.git] / lld / test / COFF / precomp-summary-fail.test
blob5ebba9a1d3c7476ba6c2ef0fedfd8925913e0b43
2 The input files were tailored so that we end up with a resulting IPI stream
3 smaller than the TPI stream, which would previously trigger a crash with
4 /summary.
6 RUN: rm -rf %t && mkdir %t
7 RUN: yaml2obj < %S/Inputs/precomp2.yaml -o %t\precomp2.obj
8 RUN: yaml2obj < %S/Inputs/precomp2-a.yaml -o %t\precomp2-a.obj
9 RUN: lld-link %t\precomp2-a.obj %t\precomp2.obj /nodefaultlib /noentry \
10 RUN:    /dll /out:%t.dll /debug /summary | FileCheck %s -check-prefix SUMMARY
12 SUMMARY:                                     Summary
13 SUMMARY-NEXT: --------------------------------------------------------------------------------
14 SUMMARY-NEXT:               2 Input OBJ files (expanded from all cmd-line inputs)
15 SUMMARY-NEXT:               0 PDB type server dependencies
16 SUMMARY-NEXT:               1 Precomp OBJ dependencies
17 SUMMARY-NEXT:               8 Input type records
18 SUMMARY-NEXT:             232 Input type records bytes
19 SUMMARY-NEXT:               3 Merged TPI records
20 SUMMARY-NEXT:               2 Merged IPI records
21 SUMMARY-NEXT:               1 Output PDB strings
22 SUMMARY-NEXT:               0 Global symbol records
23 SUMMARY-NEXT:               4 Module symbol records
24 SUMMARY-NEXT:               0 Public symbol records