1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/test/Object/yaml2obj-coff-invalid-alignment.test
David Majnemer 9e8382e439 [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.

llvm-svn: 263692
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: