1 # RUN: yaml2obj %s -o %t.obj
2 # RUN: not lld-link /include:symbol /dll /noentry /nodefaultlib %t.obj /out:%t.exe 2>&1 | FileCheck %s
4 # Tests an associative comdat being associated with an empty section errors.
5 # CHECK: lld-link: error: {{.*}}: associative comdat .text$ac1 (sec 1) has invalid reference to section .text$nm (sec 2)
6 # CHECK-NOT: lld-link: error:
10 Machine: IMAGE_FILE_MACHINE_AMD64
14 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
16 SectionData: '01000000'
18 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
20 SectionData: '01000000'
25 SimpleType: IMAGE_SYM_TYPE_NULL
26 ComplexType: IMAGE_SYM_DTYPE_NULL
27 StorageClass: IMAGE_SYM_CLASS_STATIC
30 NumberOfRelocations: 0
31 NumberOfLinenumbers: 0
34 Selection: IMAGE_COMDAT_SELECT_ASSOCIATIVE
38 SimpleType: IMAGE_SYM_TYPE_NULL
39 ComplexType: IMAGE_SYM_DTYPE_NULL
40 StorageClass: IMAGE_SYM_CLASS_STATIC
43 NumberOfRelocations: 0
44 NumberOfLinenumbers: 0
47 Selection: IMAGE_COMDAT_SELECT_ANY
51 SimpleType: IMAGE_SYM_TYPE_NULL
52 ComplexType: IMAGE_SYM_DTYPE_NULL
53 StorageClass: IMAGE_SYM_CLASS_STATIC