2 # RUN: yaml2obj %s -o %t1.obj
3 # RUN: yaml2obj %s -o %t2.obj
4 # RUN: not lld-link /out:%t.exe %t1.obj %t2.obj 2>&1 | FileCheck --check-prefix=OBJ %s
6 # RUN: llvm-as -o %t.lto1.obj %S/Inputs/conflict.ll
7 # RUN: llvm-as -o %t.lto2.obj %S/Inputs/conflict.ll
8 # RUN: not lld-link /out:%t.exe %t.lto1.obj %t.lto2.obj 2>&1 | FileCheck --check-prefix=BC %s
10 # OBJ: duplicate symbol: foo
11 # OBJ: defined at {{.+}}1.obj
12 # OBJ: defined at {{.+}}2.obj
14 # BC: duplicate symbol: foo
15 # BC: defined at {{.+}}conflict.ll
17 # BC: defined at {{.+}}conflict.ll
22 Machine: IMAGE_FILE_MACHINE_AMD64
26 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
28 SectionData: 000000000000
33 SimpleType: IMAGE_SYM_TYPE_NULL
34 ComplexType: IMAGE_SYM_DTYPE_NULL
35 StorageClass: IMAGE_SYM_CLASS_STATIC
38 NumberOfRelocations: 0
39 NumberOfLinenumbers: 0
45 SimpleType: IMAGE_SYM_TYPE_NULL
46 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
47 StorageClass: IMAGE_SYM_CLASS_EXTERNAL