[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / COFF / includeoptional.yaml
blobd9dff1536adeb16d14a42c31ef7d02bff2ea1b5b
1 # RUN: yaml2obj %s -o %t.main.obj
2 # RUN: yaml2obj %p/Inputs/include1c.yaml -o %t.lib.obj
3 # RUN: rm -f %t.lib.lib
4 # RUN: llvm-ar cru %t.lib.lib %t.lib.obj
5 # RUN: lld-link /out:%t.exe /entry:main /includeoptional:bar /includeoptional:actuallymissing %t.main.obj %t.lib.lib /verbose >& %t.log
6 # RUN: FileCheck %s < %t.log
8 # CHECK: includeoptional.yaml.tmp.main.obj
9 # CHECK: includeoptional.yaml.tmp.lib.lib
10 # CHECK: includeoptional.yaml.tmp.lib.lib(includeoptional.yaml.tmp.lib.obj) for bar
11 --- !COFF
12 header:
13   Machine:         IMAGE_FILE_MACHINE_AMD64
14   Characteristics: []
15 sections:
16   - Name:            .text
17     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
18     Alignment:       4
19     SectionData:     B800000000506800000000680000000050E80000000050E800000000
20 symbols:
21   - Name:            .text
22     Value:           0
23     SectionNumber:   1
24     SimpleType:      IMAGE_SYM_TYPE_NULL
25     ComplexType:     IMAGE_SYM_DTYPE_NULL
26     StorageClass:    IMAGE_SYM_CLASS_STATIC
27     SectionDefinition:
28       Length:          28
29       NumberOfRelocations: 4
30       NumberOfLinenumbers: 0
31       CheckSum:        0
32       Number:          0
33   - Name:            main
34     Value:           0
35     SectionNumber:   1
36     SimpleType:      IMAGE_SYM_TYPE_NULL
37     ComplexType:     IMAGE_SYM_DTYPE_NULL
38     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
39 ...