1 # RUN: yaml2obj < %s > %t.obj
2 # RUN: llvm-pdbutil dump --symbols %t.obj | FileCheck %s
3 # RUN: llvm-readobj -codeview %t.obj | FileCheck %s --check-prefix=READOBJ
5 # CHECK: S_ANNOTATION [size = 20]
6 # CHECK-NEXT: addr = 0001:0042
7 # CHECK-NEXT: strings = [
11 # READOBJ: AnnotationSym {
12 # READOBJ-NEXT: Kind: S_ANNOTATION (0x1019)
13 # READOBJ-NEXT: Offset: 0x2A
14 # READOBJ-NEXT: Segment: 0x1
15 # READOBJ-NEXT: Strings [
23 Machine: IMAGE_FILE_MACHINE_AMD64
27 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
31 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
39 ObjectName: 'SimpleFunction.obj'
42 Flags: [ SecurityChecks, HotPatch ]
52 Version: 'Microsoft (R) Optimizing Compiler'
67 SimpleType: IMAGE_SYM_TYPE_NULL
68 ComplexType: IMAGE_SYM_DTYPE_NULL
69 StorageClass: IMAGE_SYM_CLASS_STATIC
72 NumberOfRelocations: 0
73 NumberOfLinenumbers: 0
79 SimpleType: IMAGE_SYM_TYPE_NULL
80 ComplexType: IMAGE_SYM_DTYPE_NULL
81 StorageClass: IMAGE_SYM_CLASS_STATIC
84 NumberOfRelocations: 0
85 NumberOfLinenumbers: 0