1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00
llvm-mirror/test/tools/llvm-dlltool/coff-noname.def
Martin Storsjo 400d5be82b [llvm-dlltool] Respect NONAME keyword
This adds proper handling of the NONAME-keyword, which makes llvm-dlltool
generate an import using the ordinal instead of the name.

Patch by by Jannik Vogel, test added by Stefan Schmidt.

Differential Revision: https://reviews.llvm.org/D62175

llvm-svn: 361367
2019-05-22 09:49:54 +00:00

15 lines
382 B
Modula-2

; RUN: llvm-dlltool -k -m i386 --input-def %s --output-lib %t.a
; RUN: llvm-readobj %t.a | FileCheck %s
LIBRARY test.dll
EXPORTS
ByOrdinalFunction @ 1 NONAME
ByNameFunction
; CHECK: Name type: ordinal
; CHECK: Symbol: __imp__ByOrdinalFunction
; CHECK: Symbol: _ByOrdinalFunction
; CHECK: Name type: noprefix
; CHECK: Symbol: __imp__ByNameFunction
; CHECK: Symbol: _ByNameFunction