• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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"
25