[ELF] - Testcase checking that we do not crash on invalid sh_info in SHT_GROUP sections. NFC.

Fix was landed as r284702 "[Object/ELF] - Check index argument in getSymbol()."

Patch contains LLD testcase only.

llvm-svn: 284703
This commit is contained in:
George Rimar 2016-10-20 08:22:54 +00:00
parent de69e9f5db
commit 6912147094
2 changed files with 3 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,3 @@
## sht-group.elf contains SHT_GROUP section with invalid sh_info.
# RUN: not ld.lld %p/Inputs/sht-group.elf -o %t2 2>&1 | FileCheck %s
# CHECK: Invalid symbol index