2014-05-01 08:06:56 +08:00
|
|
|
# RUN: yaml2obj %p/Inputs/export.obj.yaml > %t.obj
|
|
|
|
#
|
|
|
|
# RUN: lld -flavor link /out:%t.dll /dll /entry:init \
|
2014-12-06 05:52:02 +08:00
|
|
|
# RUN: /export:exportfn1 /export:exportfn2 /lldmoduledeffile:%t1.def -- %t.obj
|
|
|
|
# RUN: FileCheck -check-prefix=CHECK1 %s < %t1.def
|
2014-05-01 08:06:56 +08:00
|
|
|
|
2014-11-05 06:09:13 +08:00
|
|
|
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 \
|
2014-12-06 05:52:02 +08:00
|
|
|
# RUN: /def:%p/Inputs/exports2.def /lldmoduledeffile:%t2.def -- %t.obj
|
|
|
|
# RUN: FileCheck -check-prefix=CHECK2 %s < %t2.def
|
2014-11-05 06:09:13 +08:00
|
|
|
|
|
|
|
CHECK2: LIBRARY "exportlib2.test.tmp.dll"
|
|
|
|
CHECK2: EXPORTS
|
|
|
|
CHECK2: exportfn1 @5
|
2014-12-06 05:52:02 +08:00
|
|
|
CHECK2: exportfn3@256 @6
|
|
|
|
CHECK2: exportfn7@8 @7
|