[LLD][COFF] Fix TypeServerSource matcher with more than one collision
[llvm-project.git] / lld / test / COFF / imports-gnu-autoexport.s
blobe9cd93485afbcd189ba869da7a1fef5229331b35
1 # REQUIRES: x86
3 # RUN: llvm-mc -triple=x86_64-windows-gnu %p/Inputs/gnu-implib-head.s -filetype=obj -o %t-dabcdh.o
4 # RUN: llvm-mc -triple=x86_64-windows-gnu %p/Inputs/gnu-implib-func.s -filetype=obj -o %t-dabcds00000.o
5 # RUN: llvm-mc -triple=x86_64-windows-gnu %p/Inputs/gnu-implib-tail.s -filetype=obj -o %t-dabcdt.o
6 # RUN: rm -f %t-implib.a
7 # RUN: llvm-ar rcs %t-implib.a %t-dabcdh.o %t-dabcds00000.o %t-dabcdt.o
8 # RUN: lld-link -lldmingw -dll -out:%t.dll -entry:main -subsystem:console \
9 # RUN: %p/Inputs/hello64.obj %p/Inputs/std64.lib %t-implib.a -include:func
10 # RUN: llvm-readobj --coff-exports %t.dll | FileCheck -check-prefix=EXPORT %s
12 # Check that only the single normal symbol was exported, none of the symbols
13 # from the import library.
15 EXPORT: Export {
16 EXPORT-NEXT: Ordinal: 0
17 EXPORT-NEXT: Name:
18 EXPORT-NEXT: RVA: 0x0
19 EXPORT-NEXT: }
20 EXPORT-NEXT: Export {
21 EXPORT-NEXT: Ordinal: 1
22 EXPORT-NEXT: Name: main
23 EXPORT-NEXT: RVA: 0x1010
24 EXPORT-NEXT: }
25 EXPORT-NEXT-EMPTY: