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
19 Machine: IMAGE_FILE_MACHINE_AMD64
23 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
25 SectionData: 000000000000
30 SimpleType: IMAGE_SYM_TYPE_NULL
31 ComplexType: IMAGE_SYM_DTYPE_NULL
32 StorageClass: IMAGE_SYM_CLASS_STATIC
35 NumberOfRelocations: 0
36 NumberOfLinenumbers: 0
42 SimpleType: IMAGE_SYM_TYPE_NULL
43 ComplexType: IMAGE_SYM_DTYPE_NULL
44 StorageClass: IMAGE_SYM_CLASS_EXTERNAL