1 # RUN: yaml2obj %s -o %t.obj
2 # RUN: yaml2obj %p/Inputs/generic.yaml -o %t2.obj
4 # RUN: lld-link /out:%t.exe /debug /entry:main %t.obj %t2.obj /nodefaultlib
5 # RUN: llvm-pdbutil dump --types --type-data %t.pdb | FileCheck %s
6 # RUN: lld-link /out:%t.exe /debug:ghash /entry:main %t.obj %t2.obj /nodefaultlib
7 # RUN: llvm-pdbutil dump --types --type-data %t.pdb | FileCheck %s
9 # CHECK: 0000: 12000810 03000000 00000000 00000000 0000F2F1
13 Machine: IMAGE_FILE_MACHINE_AMD64
17 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
19 # It is important to keep the 'SectionData' since the .OBJ is reconstructed from it,
20 # and that triggers an alignment bug in the output .PDB.
21 SectionData: '040000001000081003000000000000000000000000000600011200000000'
37 SimpleType: IMAGE_SYM_TYPE_NULL
38 ComplexType: IMAGE_SYM_DTYPE_NULL
39 StorageClass: IMAGE_SYM_CLASS_STATIC
42 NumberOfRelocations: 0
43 NumberOfLinenumbers: 0