1 # RUN: yaml2obj %s -o %t1.obj
2 # RUN: yaml2obj %s -o %t2.obj
3 # RUN: not lld-link /out:%t.exe %t1.obj %t2.obj >& %t.log
4 # RUN: FileCheck %s < %t.log
5 # RUN: not lld-link /out:%t.exe /demangle %t1.obj %t2.obj 2>&1 | FileCheck %s
6 # RUN: not lld-link /out:%t.exe /demangle:no %t1.obj %t2.obj 2>&1 | FileCheck --check-prefix=NODEMANGLE %s
8 # NODEMANGLE: duplicate symbol: ?mangled@@YAHXZ
9 # NODEMANGLE: defined at {{.+}}1.obj
10 # NODEMANGLE: defined at {{.+}}2.obj
12 # CHECK: duplicate symbol: int __cdecl mangled(void)
13 # CHECK: defined at {{.+}}1.obj
14 # CHECK: defined at {{.+}}2.obj
18 Machine: IMAGE_FILE_MACHINE_AMD64
22 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
24 SectionData: 000000000000
29 SimpleType: IMAGE_SYM_TYPE_NULL
30 ComplexType: IMAGE_SYM_DTYPE_NULL
31 StorageClass: IMAGE_SYM_CLASS_STATIC
34 NumberOfRelocations: 0
35 NumberOfLinenumbers: 0
38 - Name: '?mangled@@YAHXZ'
41 SimpleType: IMAGE_SYM_TYPE_NULL
42 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
43 StorageClass: IMAGE_SYM_CLASS_EXTERNAL