Rename CODE_OWNERS -> Maintainers (#114544)
[llvm-project.git] / lld / test / COFF / weak-external2.test
blob6270a4e8ff19903d639bc7c22c4ff51edd0b771d
1 # REQUIRES: x86
2 # RUN: yaml2obj %s -o %t.obj
3 # RUN: llvm-as -o %t.lto.obj %S/Inputs/weak-external2.ll
4 # RUN: lld-link /out:%t.exe /entry:g /subsystem:console %t.obj %t.lto.obj
6 --- !COFF
7 header:
8   Machine:         IMAGE_FILE_MACHINE_AMD64
9   Characteristics: [  ]
10 sections:
11   - Name:            '.text'
12     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
13     Alignment:       16
14     SectionData:     00
15 symbols:
16   - Name:            'f'
17     Value:           0
18     SectionNumber:   0
19     SimpleType:      IMAGE_SYM_TYPE_NULL
20     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
21     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
22   - Name:            'g'
23     Value:           0
24     SectionNumber:   0
25     SimpleType:      IMAGE_SYM_TYPE_NULL
26     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
27     StorageClass:    IMAGE_SYM_CLASS_WEAK_EXTERNAL
28     WeakExternal:
29       TagIndex:        0
30       Characteristics: IMAGE_WEAK_EXTERN_SEARCH_LIBRARY
31 ...