[LLD][COFF] Fix TypeServerSource matcher with more than one collision
[llvm-project.git] / lld / test / COFF / dllexport-mingw.s
bloba96003b5ed225786ab7f0e49edc1eeea83a2ddaf
1 # REQUIRES: x86
3 # RUN: llvm-mc -triple=i686-windows-gnu %s -filetype=obj -o %t.obj
5 # RUN: lld-link -lldmingw -dll -out:%t.dll -entry:main %t.obj -implib:%t.lib
6 # RUN: llvm-readobj %t.lib | FileCheck %s
8 # CHECK: Symbol: __imp___underscoredFunc
9 # CHECK: Symbol: __underscoredFunc
10 # CHECK: Symbol: __imp__func
11 # CHECK: Symbol: _func
13 .global _main
14 .global _func
15 .global __underscoredFunc
16 .text
17 _main:
18 ret
19 _func:
20 ret
21 __underscoredFunc:
22 ret
23 .section .drectve
24 .ascii "-export:func -export:_underscoredFunc"