[clang-tidy][use-internal-linkage]fix false positives for global overloaded operator...
[llvm-project.git] / lld / test / COFF / imports-mangle.test
blob4c7e3d5bab84837be5f56451494d1a7b0ab2369e
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
6 # CHECK: Import {
7 # CHECK:   Symbol: sym4 (0)
8 # CHECK:   Symbol: _sym3 (1)
9 # CHECK:   Symbol: sym1 (2)
10 # CHECK:   Symbol:  (2)
11 # CHECK: }
13 --- !COFF
14 header:
15   Machine:         IMAGE_FILE_MACHINE_AMD64
16   Characteristics: []
17 sections:
18   - Name:            .text
19     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
20     Alignment:       4
21     SectionData:     000000000000
22 symbols:
23   - Name:            .text
24     Value:           0
25     SectionNumber:   1
26     SimpleType:      IMAGE_SYM_TYPE_NULL
27     ComplexType:     IMAGE_SYM_DTYPE_NULL
28     StorageClass:    IMAGE_SYM_CLASS_STATIC
29     SectionDefinition:
30       Length:          6
31       NumberOfRelocations: 0
32       NumberOfLinenumbers: 0
33       CheckSum:        0
34       Number:          0
35       Selection:       IMAGE_COMDAT_SELECT_ANY
36   - Name:            main
37     Value:           0
38     SectionNumber:   1
39     SimpleType:      IMAGE_SYM_TYPE_NULL
40     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
41     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
42   - Name:            sym1
43     Value:           0
44     SectionNumber:   0
45     SimpleType:      IMAGE_SYM_TYPE_NULL
46     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
47     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
48   - Name:            sym2
49     Value:           0
50     SectionNumber:   0
51     SimpleType:      IMAGE_SYM_TYPE_NULL
52     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
53     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
54   - Name:            __sym3
55     Value:           0
56     SectionNumber:   0
57     SimpleType:      IMAGE_SYM_TYPE_NULL
58     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
59     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
60   - Name:            '?sym4@@YAHH@Z'
61     Value:           0
62     SectionNumber:   0
63     SimpleType:      IMAGE_SYM_TYPE_NULL
64     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
65     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
66 ...