[COFF] Add a test for def files with spaces between @ and ordinal
authorMartin Storsjo <martin@martin.st>
Thu, 26 Oct 2017 20:11:54 +0000 (20:11 +0000)
committerMartin Storsjo <martin@martin.st>
Thu, 26 Oct 2017 20:11:54 +0000 (20:11 +0000)
Differential Revision: https://reviews.llvm.org/D39328

llvm-svn: 316691

lld/test/COFF/export32.test

index 83de18b11624e77eb2e857334a3927b00d4cc8bf..34cd1a73319edc2ef8e8def2dae219c674cf3d99 100644 (file)
 # RUN: lld-link /out:%t.dll /dll %t.obj /def:%t.def
 # RUN: llvm-objdump -p %t.dll | FileCheck -check-prefix=CHECK5 %s
 
+# RUN: echo "EXPORTS exportfn1 @ 3" > %t.def
+# RUN: echo "fn2=exportfn2 @ 2" >> %t.def
+# RUN: lld-link /out:%t.dll /dll %t.obj /def:%t.def
+# RUN: llvm-objdump -p %t.dll | FileCheck -check-prefix=CHECK5 %s
+
 # CHECK5:      Export Table:
 # CHECK5:      DLL name: export32.test.tmp.dll
 # CHECK5:      Ordinal      RVA  Name