Rename CODE_OWNERS -> Maintainers (#114544)
[llvm-project.git] / lld / test / COFF / weak-external.test
blob0f64aa76f04f8ba49b18061f997add59500edbbb
1 # REQUIRES: x86
2 # RUN: yaml2obj %s -o %t.obj
3 # RUN: llvm-as -o %t.lto.obj %S/Inputs/weak-external.ll
4 # RUN: lld-link /out:%t1.exe /entry:g /subsystem:console %t.obj
5 # RUN: lld-link /out:%t2.exe /entry:g /subsystem:console /lldmap:%t2.map %t.obj %t.lto.obj
6 # RUN: FileCheck %s < %t2.map
8 # CHECK:      .lto.obj:
9 # CHECK-NEXT: .lto.obj:
10 # CHECK-NEXT: 0 g
12 --- !COFF
13 header:
14   Machine:         IMAGE_FILE_MACHINE_AMD64
15   Characteristics: [  ]
16 sections:
17   - Name:            '.text'
18     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
19     Alignment:       16
20     SectionData:     00
21 symbols:
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:        2
30       Characteristics: IMAGE_WEAK_EXTERN_SEARCH_LIBRARY
31   - Name:            'f'
32     Value:           0
33     SectionNumber:   1
34     SimpleType:      IMAGE_SYM_TYPE_NULL
35     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
36     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
37 ...