diff --git a/test/Object/Inputs/invalid-strtab-non-null.elf b/test/Object/Inputs/invalid-strtab-non-null.elf new file mode 100644 index 00000000000..f52c0a14013 Binary files /dev/null and b/test/Object/Inputs/invalid-strtab-non-null.elf differ diff --git a/test/Object/invalid.test b/test/Object/invalid.test index 2e2c924dfae..17cbb30c9c2 100644 --- a/test/Object/invalid.test +++ b/test/Object/invalid.test @@ -1,3 +1,6 @@ RUN: not llvm-dwarfdump %p/Inputs/invalid-bad-rel-type.elf 2>&1 | FileCheck %s RUN: not llvm-objdump -s %p/Inputs/invalid-strtab-type.elf 2>&1 | FileCheck %s CHECK: Invalid data was encountered while parsing the file + +RUN: not llvm-objdump -s %p/Inputs/invalid-strtab-non-null.elf 2>&1 | FileCheck --check-prefix=NON-NULL %s +NON-NULL: String table must end with a null terminator