[ARM] Fix for MVE VPT block pass
[llvm-complete.git] / test / Object / yaml2obj-elf-section-invalid-size.yaml
blobb9086c6d1ca95f1343c5484dff5bf31cb7d0f6a3
1 # RUN: not yaml2obj -o %t %s 2>&1 | FileCheck %s
3 !ELF
4 FileHeader:
5   Class: ELFCLASS64
6   Data: ELFDATA2LSB
7   Type: ET_REL
8   Machine: EM_X86_64
10 Sections:
11   - Name: .text
12     Type: SHT_PROGBITS
13     Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
14     Content: EBFE
15     AddressAlign: 2
17   - Name: .data
18     Type: SHT_PROGBITS
19     Flags: [ SHF_ALLOC ]
20     Content: 0000000000000000
21     Size: 2
23 # CHECK: YAML:17:5: error: Section size must be greater than or equal to the content size
24 # CHECK-NEXT: - Name: .data
25 # CHECK-NEXT:   ^
26 # CHECK-NEXT: yaml2obj: Failed to parse YAML file!