]> git.proxmox.com Git - rustc.git/blob - src/llvm/test/Object/yaml2obj-coff-multi-doc.test
Imported Upstream version 1.0.0~0alpha
[rustc.git] / src / llvm / test / Object / yaml2obj-coff-multi-doc.test
1 # RUN: yaml2obj -format=coff -docnum=1 %s \
2 # RUN: | llvm-readobj -symbols - | FileCheck -check-prefix=DOC1 %s
3 # RUN: yaml2obj -format=coff -docnum=2 %s \
4 # RUN: | llvm-readobj -symbols - | FileCheck -check-prefix=DOC2 %s
5 # RUN: not yaml2obj -format=coff -docnum=3 %s 2>&1 \
6 # RUN: | FileCheck -check-prefix=DOC3 %s
7
8 # DOC1: Name: _sym1
9 # DOC2: Name: _sym2
10 # DOC3: yaml2obj: Cannot find the 3rd document
11
12 ---
13 header:
14 Machine: IMAGE_FILE_MACHINE_I386
15 Characteristics: [ IMAGE_FILE_DEBUG_STRIPPED ]
16
17 sections:
18 - Name: .text
19 Alignment: 16
20 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE,
21 IMAGE_SCN_MEM_READ ]
22 SectionData: "00000000"
23
24 symbols:
25 - Name: .text
26 Value: 0
27 SectionNumber: 1
28 SimpleType: IMAGE_SYM_TYPE_NULL
29 ComplexType: IMAGE_SYM_DTYPE_NULL
30 StorageClass: IMAGE_SYM_CLASS_STATIC
31 SectionDefinition:
32 Length: 36
33 NumberOfRelocations: 3
34 NumberOfLinenumbers: 0
35 CheckSum: 0
36 Number: 1
37
38 - Name: _main
39 Value: 0
40 SectionNumber: 1
41 SimpleType: IMAGE_SYM_TYPE_NULL
42 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
43 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
44
45 - Name: _sym1
46 Value: 0
47 SectionNumber: 0
48 SimpleType: IMAGE_SYM_TYPE_NULL
49 ComplexType: IMAGE_SYM_DTYPE_NULL
50 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
51
52 ---
53 header:
54 Machine: IMAGE_FILE_MACHINE_I386
55 Characteristics: [ IMAGE_FILE_DEBUG_STRIPPED ]
56
57 sections:
58 - Name: .text
59 Alignment: 16
60 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE,
61 IMAGE_SCN_MEM_READ ]
62 SectionData: "00000000"
63
64 symbols:
65 - Name: .text
66 Value: 0
67 SectionNumber: 1
68 SimpleType: IMAGE_SYM_TYPE_NULL
69 ComplexType: IMAGE_SYM_DTYPE_NULL
70 StorageClass: IMAGE_SYM_CLASS_STATIC
71 SectionDefinition:
72 Length: 36
73 NumberOfRelocations: 3
74 NumberOfLinenumbers: 0
75 CheckSum: 0
76 Number: 1
77
78 - Name: _main
79 Value: 0
80 SectionNumber: 1
81 SimpleType: IMAGE_SYM_TYPE_NULL
82 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
83 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
84
85 - Name: _sym2
86 Value: 0
87 SectionNumber: 0
88 SimpleType: IMAGE_SYM_TYPE_NULL
89 ComplexType: IMAGE_SYM_DTYPE_NULL
90 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
91 ...