[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / COFF / force-multiple.test
blobef4a59f1018f0e476db334b0a5505cfd6ffa5635
1 # RUN: yaml2obj %s -o %t1.obj
2 # RUN: yaml2obj %s -o %t2.obj
4 # RUN: not lld-link /out:%t.exe /entry:main %t1.obj %t2.obj >& %t.log
5 # RUN: FileCheck -check-prefix=ERROR %s < %t.log
7 # RUN: lld-link /out:%t.exe /entry:main %t1.obj %t2.obj /force >& %t.log
8 # RUN: FileCheck -check-prefix=WARN %s < %t.log
10 # RUN: lld-link /out:%t.exe /entry:main %t1.obj %t2.obj /force:multiple >& %t.log
11 # RUN: FileCheck -check-prefix=WARN %s < %t.log
13 # ERROR: error: duplicate symbol: main
15 # WARN: warning: duplicate symbol: main
17 --- !COFF
18 header:
19   Machine:         IMAGE_FILE_MACHINE_AMD64
20   Characteristics: []
21 sections:
22   - Name:            .text
23     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
24     Alignment:       4
25     SectionData:     000000000000
26 symbols:
27   - Name:            .text
28     Value:           0
29     SectionNumber:   1
30     SimpleType:      IMAGE_SYM_TYPE_NULL
31     ComplexType:     IMAGE_SYM_DTYPE_NULL
32     StorageClass:    IMAGE_SYM_CLASS_STATIC
33     SectionDefinition:
34       Length:          6
35       NumberOfRelocations: 0
36       NumberOfLinenumbers: 0
37       CheckSum:        0
38       Number:          0
39   - Name:            main
40     Value:           0
41     SectionNumber:   1
42     SimpleType:      IMAGE_SYM_TYPE_NULL
43     ComplexType:     IMAGE_SYM_DTYPE_NULL
44     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
45 ...