1 ## Test the p_align field of a program header can be set explicitly or inferred
2 ## from the maximum alignment of contained sections.
4 ## Explicit Align has priority over section alignments.
6 # RUN: yaml2obj --docnum=1 %s -o %t
7 # RUN: llvm-readobj -l %t | FileCheck %s
8 # CHECK: ProgramHeader {
9 # CHECK-NOT: ProgramHeader {
10 # CHECK: Alignment: 16
31 ## If Align is not specified, p_align is inferred from the maximum alignment
32 ## of contained sections.
34 # RUN: yaml2obj --docnum=2 %s -o %t
35 # RUN: llvm-readobj -l %t | FileCheck %s