[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / COFF / alternatename.test
blob6511a7525d0d01c2023c10085b1d3df5d784b306
1 # RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj
2 # RUN: lld-link /entry:foo /subsystem:console \
3 # RUN:   /alternatename:foo=main /out:%t.exe %t.obj
4 # RUN: lld-link /entry:foo /subsystem:console \
5 # RUN:   /alternatename:foo=main \
6 # RUN:   /alternatename:foo=main \
7 # RUN:   /alternatename:nosuchsym1=nosuchsym2 \
8 # RUN:   /out:%t.exe %t.obj
10 # RUN: yaml2obj %s -o %t.obj
11 # RUN: lld-link /entry:foo /subsystem:console /out:%t.exe %t.obj
13 --- !COFF
14 header:
15   Machine:         IMAGE_FILE_MACHINE_AMD64
16   Characteristics: []
17 sections:
18   - Name:            '.text$mn'
19     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
20     Alignment:       16
21     SectionData:     B82A000000C3
22   - Name:            .data
23     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
24     Alignment:       16
25     SectionData:     ''
26   - Name:            .drectve
27     Characteristics: [ IMAGE_SCN_LNK_INFO, IMAGE_SCN_LNK_REMOVE ]
28     Alignment:       1
29     SectionData:     2f616c7465726e6174656e616d653a666f6f3d6d61696e00  # /alternatename:foo=main
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:          6
39       NumberOfRelocations: 0
40       NumberOfLinenumbers: 0
41       CheckSum:        0
42       Number:          0
43   - Name:            .data
44     Value:           0
45     SectionNumber:   2
46     SimpleType:      IMAGE_SYM_TYPE_NULL
47     ComplexType:     IMAGE_SYM_DTYPE_NULL
48     StorageClass:    IMAGE_SYM_CLASS_STATIC
49     SectionDefinition:
50       Length:          0
51       NumberOfRelocations: 0
52       NumberOfLinenumbers: 0
53       CheckSum:        0
54       Number:          0
55   - Name:            main
56     Value:           0
57     SectionNumber:   1
58     SimpleType:      IMAGE_SYM_TYPE_NULL
59     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
60     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
61 ...