forked from OSchip/llvm-project
22 lines
679 B
Plaintext
22 lines
679 B
Plaintext
# RUN: yaml2obj %p/Inputs/export.obj.yaml > %t.obj
|
|
#
|
|
# RUN: lld -flavor link /out:%t.dll /dll /entry:init \
|
|
# RUN: /export:exportfn1 /export:exportfn2 /lldmoduledeffile:%t.def -- %t.obj
|
|
# RUN: FileCheck -check-prefix=CHECK1 %s < %t.def
|
|
|
|
CHECK1: LIBRARY "exportlib2.test.tmp.dll"
|
|
CHECK1: EXPORTS
|
|
CHECK1: exportfn1 @1
|
|
CHECK1: exportfn2 @2
|
|
CHECK1: exportfn3@256 @3
|
|
|
|
# RUN: lld -flavor link /out:%t.dll /dll /entry:init \
|
|
# RUN: /def:%p/Inputs/exports.def /lldmoduledeffile:%t.def -- %t.obj
|
|
# RUN: FileCheck -check-prefix=CHECK2 %s < %t.def
|
|
|
|
CHECK2: LIBRARY "exportlib2.test.tmp.dll"
|
|
CHECK2: EXPORTS
|
|
CHECK2: exportfn1 @5
|
|
CHECK2: exportfn2 @6
|
|
CHECK2: exportfn3@256 @7
|