Add a test of an elf file with an invalid section index.

We were already checking, but were missing a test.

llvm-svn: 241094
This commit is contained in:
Rafael Espindola 2015-06-30 18:23:07 +00:00
parent f09df00daa
commit 0fe34f7359
2 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -37,3 +37,7 @@ SECTION-NEXT: EntrySize: 32
RUN: not llvm-readobj -t %p/Inputs/invalid-sh_entsize.elf 2>&1 | FileCheck --check-prefix=INVALID-SYM-SIZE %s
RUN: not llvm-readobj --dyn-symbols %p/Inputs/invalid-sh_entsize.elf 2>&1 | FileCheck --check-prefix=INVALID-SYM-SIZE %s
INVALID-SYM-SIZE: Invalid symbol size
RUN: not llvm-readobj -t %p/Inputs/invalid-section-index.elf 2>&1 | FileCheck --check-prefix=INVALID-SECTION-INDEX %s
INVALID-SECTION-INDEX: Invalid section index!