[clang-tidy][use-internal-linkage]fix false positives for global overloaded operator...
[llvm-project.git] / lld / test / COFF / icf-circular2.test
blob3d88d7f50256192bb62fe766aaf3fc0bdd1fbf9b
1 # RUN: yaml2obj %s -o %t.obj
2 # RUN: lld-link /entry:foo /out:%t.exe /subsystem:console /include:bar \
3 # RUN:   /verbose %t.obj > %t.log 2>&1
4 # RUN: FileCheck %s < %t.log
6 # CHECK: Selected foo
7 # CHECK:   Removed bar
9 --- !COFF
10 header:
11   Machine:         IMAGE_FILE_MACHINE_AMD64
12   Characteristics: []
13 sections:
14   - Name:            '.text$mn'
15     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
16     Alignment:       16
17     SectionData:     4883EC28E8000000004883C428C3
18     Relocations:
19       - VirtualAddress:  5
20         SymbolName:      foo
21         Type:            IMAGE_REL_AMD64_REL32
22   - Name:            '.text$mn'
23     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
24     Alignment:       16
25     SectionData:     4883EC28E8000000004883C428C3
26     Relocations:
27       - VirtualAddress:  5
28         SymbolName:      foo
29         Type:            IMAGE_REL_AMD64_REL32
30 symbols:
31   - Name:            '.text$mn'
32     Value:           0
33     SectionNumber:   1
34     SimpleType:      IMAGE_SYM_TYPE_NULL
35     ComplexType:     IMAGE_SYM_DTYPE_NULL
36     StorageClass:    IMAGE_SYM_CLASS_STATIC
37     SectionDefinition:
38       Length:          14
39       NumberOfRelocations: 1
40       NumberOfLinenumbers: 0
41       CheckSum:        1682752513
42       Number:          0
43       Selection:       IMAGE_COMDAT_SELECT_NODUPLICATES
44   - Name:            '.text$mn'
45     Value:           0
46     SectionNumber:   2
47     SimpleType:      IMAGE_SYM_TYPE_NULL
48     ComplexType:     IMAGE_SYM_DTYPE_NULL
49     StorageClass:    IMAGE_SYM_CLASS_STATIC
50     SectionDefinition:
51       Length:          14
52       NumberOfRelocations: 1
53       NumberOfLinenumbers: 0
54       CheckSum:        1682752513
55       Number:          0
56       Selection:       IMAGE_COMDAT_SELECT_NODUPLICATES
57   - Name:            foo
58     Value:           0
59     SectionNumber:   1
60     SimpleType:      IMAGE_SYM_TYPE_NULL
61     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
62     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
63   - Name:            bar
64     Value:           0
65     SectionNumber:   2
66     SimpleType:      IMAGE_SYM_TYPE_NULL
67     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
68     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
69 ...