1 ## Check we are able to have multiple YAMLs in a file and switch between
2 ## them using --docnum=x option.
4 # RUN: yaml2obj --docnum=1 %s \
5 # RUN: | llvm-readobj --symbols - | FileCheck -check-prefix=DOC1 %s
6 # RUN: yaml2obj --docnum=2 %s \
7 # RUN: | llvm-readobj --symbols - | FileCheck -check-prefix=DOC2 %s
8 # RUN: yaml2obj --docnum=3 %s \
9 # RUN: | llvm-readobj --symbols - | FileCheck -check-prefix=DOC3 %s
10 # RUN: yaml2obj --docnum=4 %s \
11 # RUN: | llvm-readobj --symbols - | FileCheck -check-prefix=DOC4 %s
12 # RUN: not yaml2obj --docnum=5 %s 2>&1 \
13 # RUN: | FileCheck -check-prefix=DOC5 %s
19 # DOC5: error: cannot find the 5th document
22 FileHeader: !FileHeader
32 FileHeader: !FileHeader
42 Machine: IMAGE_FILE_MACHINE_I386
43 Characteristics: [ IMAGE_FILE_DEBUG_STRIPPED ]
48 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE,
50 SectionData: "00000000"
55 SimpleType: IMAGE_SYM_TYPE_NULL
56 ComplexType: IMAGE_SYM_DTYPE_NULL
57 StorageClass: IMAGE_SYM_CLASS_STATIC
60 NumberOfRelocations: 3
61 NumberOfLinenumbers: 0
67 SimpleType: IMAGE_SYM_TYPE_NULL
68 ComplexType: IMAGE_SYM_DTYPE_NULL
69 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
73 Machine: IMAGE_FILE_MACHINE_I386
74 Characteristics: [ IMAGE_FILE_DEBUG_STRIPPED ]
79 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE,
81 SectionData: "00000000"
86 SimpleType: IMAGE_SYM_TYPE_NULL
87 ComplexType: IMAGE_SYM_DTYPE_NULL
88 StorageClass: IMAGE_SYM_CLASS_STATIC
91 NumberOfRelocations: 3
92 NumberOfLinenumbers: 0
98 SimpleType: IMAGE_SYM_TYPE_NULL
99 ComplexType: IMAGE_SYM_DTYPE_NULL
100 StorageClass: IMAGE_SYM_CLASS_EXTERNAL