llvm/test/Object/yaml2obj-coff-invalid-alignment.test
David Majnemer ba0d0e1663 [yaml2obj, COFF] Correctly handle section alignment
The section alignment field was marked optional but not provided a
default value: initialize it with 0.

While we are here, ensure that the section alignment is plausible.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263692 91177308-0d34-0410-b5e6-96231b3b80d8
2016-03-17 05:43:26 +00:00

15 lines
286 B
Plaintext

# RUN: not yaml2obj %s 2>&1 | FileCheck %s
# CHECK: Section alignment is too large
---
header:
Machine: IMAGE_FILE_MACHINE_AMD64
Characteristics: []
sections:
- Name: '.text'
Characteristics: []
SectionData: 00
Alignment: 16384
symbols: