]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/COFF/dllexport-mingw.s
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / COFF / dllexport-mingw.s
1 # REQUIRES: x86
2
3 # RUN: llvm-mc -triple=i686-windows-gnu %s -filetype=obj -o %t.obj
4
5 # RUN: lld-link -lldmingw -dll -out:%t.dll -entry:main %t.obj -implib:%t.lib
6 # RUN: llvm-readobj %t.lib | FileCheck %s
7
8 # CHECK: Symbol: __imp___underscoredFunc
9 # CHECK: Symbol: __underscoredFunc
10 # CHECK: Symbol: __imp__func
11 # CHECK: Symbol: _func
12
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"