Rename CODE_OWNERS -> Maintainers (#114544)
[llvm-project.git] / lld / test / COFF / includeoptional2.yaml
blob47178e82414bc16485b666746df8144e39c27b99
1 # RUN: yaml2obj %s -o %t.obj
2 # RUN: not lld-link /out:%t.exe /entry:main /includeoptional:undeffunc %t.obj /verbose 2>&1 | FileCheck %s
4 # CHECK: error: undefined symbol: undeffunc
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:       4
14     SectionData:     B800000000506800000000680000000050E80000000050E800000000
15     Relocations:
16       - VirtualAddress:  17
17         SymbolName:      undeffunc
18         Type:            IMAGE_REL_AMD64_REL32
19 symbols:
20   - Name:            .text
21     Value:           0
22     SectionNumber:   1
23     SimpleType:      IMAGE_SYM_TYPE_NULL
24     ComplexType:     IMAGE_SYM_DTYPE_NULL
25     StorageClass:    IMAGE_SYM_CLASS_STATIC
26     SectionDefinition:
27       Length:          28
28       NumberOfRelocations: 1
29       NumberOfLinenumbers: 0
30       CheckSum:        0
31       Number:          0
32   - Name:            main
33     Value:           0
34     SectionNumber:   1
35     SimpleType:      IMAGE_SYM_TYPE_NULL
36     ComplexType:     IMAGE_SYM_DTYPE_NULL
37     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
38   - Name:            undeffunc
39     Value:           0
40     SectionNumber:   0
41     SimpleType:      IMAGE_SYM_TYPE_NULL
42     ComplexType:     IMAGE_SYM_DTYPE_NULL
43     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
44 ...