1 # RUN: yaml2obj %p/Inputs/export.yaml -o %t-lib.obj
2 # RUN: lld-link /out:%t.dll /dll %t-lib.obj /implib:%t.lib /export:exportfn1
4 # RUN: yaml2obj %p/Inputs/oldname.yaml -o %t-oldname.obj
6 # RUN: yaml2obj %s -o %t.obj
8 # RUN: lld-link /out:%t1.exe /entry:main %t.obj %t-oldname.obj %t.lib
9 # RUN: llvm-readobj --coff-imports %t1.exe | FileCheck -check-prefix=REF %s
10 # REF-NOT: Symbol: exportfn1
12 # RUN: lld-link /out:%t2.exe /entry:main %t.obj %t-oldname.obj %t.lib /opt:noref
13 # RUN: llvm-readobj --coff-imports %t2.exe | FileCheck -check-prefix=NOREF %s
14 # NOREF: Symbol: exportfn1
18 Machine: IMAGE_FILE_MACHINE_AMD64
22 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
24 SectionData: 0000000000000000
29 SimpleType: IMAGE_SYM_TYPE_NULL
30 ComplexType: IMAGE_SYM_DTYPE_NULL
31 StorageClass: IMAGE_SYM_CLASS_STATIC
34 NumberOfRelocations: 0
35 NumberOfLinenumbers: 0
41 SimpleType: IMAGE_SYM_TYPE_NULL
42 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
43 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
47 SimpleType: IMAGE_SYM_TYPE_NULL
48 ComplexType: IMAGE_SYM_DTYPE_NULL
49 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
50 - Name: exportfn1_alias
53 SimpleType: IMAGE_SYM_TYPE_NULL
54 ComplexType: IMAGE_SYM_DTYPE_NULL
55 StorageClass: IMAGE_SYM_CLASS_EXTERNAL