[clang][Driver] Support simplified triple versions for config files (#111387)
[llvm-project.git] / llvm / test / tools / obj2yaml / COFF / weak-external.yaml
blobee5e5e9395228d8edfcc0171f405bc00196a597e
1 # RUN: yaml2obj %s | obj2yaml | FileCheck %s --check-prefix COFF-I386
3 # COFF-I386: Characteristics: 0
5 --- !COFF
6 header:
7   Machine:         IMAGE_FILE_MACHINE_I386
8   Characteristics: [ IMAGE_FILE_LINE_NUMS_STRIPPED, IMAGE_FILE_32BIT_MACHINE ]
9 sections:
10   - Name:            .text
11     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
12     Alignment:       4
13     SectionData:     5589E583E4F0E800000000B800000000C9C39090
14     Relocations:     
15       - VirtualAddress:  7
16         SymbolName:      ___main
17         Type:            IMAGE_REL_I386_REL32
18 symbols:
19   - Name:            .file
20     Value:           0
21     SectionNumber:   65534
22     SimpleType:      IMAGE_SYM_TYPE_NULL
23     ComplexType:     IMAGE_SYM_DTYPE_NULL
24     StorageClass:    IMAGE_SYM_CLASS_FILE
25     File:            'file'
26   - Name:            .text
27     Value:           0
28     SectionNumber:   1
29     SimpleType:      IMAGE_SYM_TYPE_NULL
30     ComplexType:     IMAGE_SYM_DTYPE_NULL
31     StorageClass:    IMAGE_SYM_CLASS_STATIC
32     SectionDefinition: 
33       Length:          18
34       NumberOfRelocations: 1
35       NumberOfLinenumbers: 0
36       CheckSum:        0
37       Number:          0
38   - Name:            ___main
39     Value:           0
40     SectionNumber:   0
41     SimpleType:      IMAGE_SYM_TYPE_NULL
42     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
43     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
44     WeakExternal:    
45       TagIndex:        0
46       Characteristics: 0
47 ...