diff options
Diffstat (limited to 'test/pecoff/exportlib2.test')
-rw-r--r-- | test/pecoff/exportlib2.test | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/pecoff/exportlib2.test b/test/pecoff/exportlib2.test new file mode 100644 index 0000000000000..e846b0bdd064a --- /dev/null +++ b/test/pecoff/exportlib2.test @@ -0,0 +1,21 @@ +# 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:%t1.def -- %t.obj +# RUN: FileCheck -check-prefix=CHECK1 %s < %t1.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/exports2.def /lldmoduledeffile:%t2.def -- %t.obj +# RUN: FileCheck -check-prefix=CHECK2 %s < %t2.def + +CHECK2: LIBRARY "exportlib2.test.tmp.dll" +CHECK2: EXPORTS +CHECK2: exportfn1 @5 +CHECK2: exportfn3@256 @6 +CHECK2: exportfn7@8 @7 |