1 # RUN: yaml2obj %s -o %t.obj
2 # RUN: lld-link /out:%t.exe /opt:noref /entry:main \
3 # RUN: %t.obj %p/Inputs/imports-mangle.lib
4 # RUN: llvm-readobj --coff-imports %t.exe | FileCheck %s
7 # CHECK: Symbol: sym4 (0)
8 # CHECK: Symbol: _sym3 (1)
9 # CHECK: Symbol: sym1 (2)
15 Machine: IMAGE_FILE_MACHINE_AMD64
19 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
21 SectionData: 000000000000
26 SimpleType: IMAGE_SYM_TYPE_NULL
27 ComplexType: IMAGE_SYM_DTYPE_NULL
28 StorageClass: IMAGE_SYM_CLASS_STATIC
31 NumberOfRelocations: 0
32 NumberOfLinenumbers: 0
35 Selection: IMAGE_COMDAT_SELECT_ANY
39 SimpleType: IMAGE_SYM_TYPE_NULL
40 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
41 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
45 SimpleType: IMAGE_SYM_TYPE_NULL
46 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
47 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
51 SimpleType: IMAGE_SYM_TYPE_NULL
52 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
53 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
57 SimpleType: IMAGE_SYM_TYPE_NULL
58 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
59 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
60 - Name: '?sym4@@YAHH@Z'
63 SimpleType: IMAGE_SYM_TYPE_NULL
64 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
65 StorageClass: IMAGE_SYM_CLASS_EXTERNAL