diff options
Diffstat (limited to 'llvm/test/Object/invalid-alignment.test')
-rw-r--r-- | llvm/test/Object/invalid-alignment.test | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/llvm/test/Object/invalid-alignment.test b/llvm/test/Object/invalid-alignment.test new file mode 100644 index 00000000000..872de8c28a1 --- /dev/null +++ b/llvm/test/Object/invalid-alignment.test @@ -0,0 +1,21 @@ +# RUN: yaml2obj %s -o %t.o +# RUN: not llvm-readobj -r %t.o 2>&1 | FileCheck %s + +# CHECK: Error reading file: unaligned data + +--- !ELF +FileHeader: + Class: ELFCLASS64 + Data: ELFDATA2LSB + Type: ET_REL + Machine: EM_X86_64 +Sections: + - Name: .foo + Type: SHT_PROGBITS + Content: 42 + - Name: .rela.foo + Type: SHT_RELA + Info: .foo + Relocations: + - Offset: 0 + Type: R_X86_64_NONE |