summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Object/Inputs/invalid-section-index2.elfbin435 -> 435 bytes
-rw-r--r--llvm/test/Object/Inputs/invalid-sections-num.elfbin0 -> 528 bytes
-rw-r--r--llvm/test/Object/invalid.test3
3 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/Object/Inputs/invalid-section-index2.elf b/llvm/test/Object/Inputs/invalid-section-index2.elf
index 7667637519c..92c372a25f8 100644
--- a/llvm/test/Object/Inputs/invalid-section-index2.elf
+++ b/llvm/test/Object/Inputs/invalid-section-index2.elf
Binary files differ
diff --git a/llvm/test/Object/Inputs/invalid-sections-num.elf b/llvm/test/Object/Inputs/invalid-sections-num.elf
new file mode 100644
index 00000000000..d8d5bc8fe2b
--- /dev/null
+++ b/llvm/test/Object/Inputs/invalid-sections-num.elf
Binary files differ
diff --git a/llvm/test/Object/invalid.test b/llvm/test/Object/invalid.test
index a0016fef9d5..dd431aa3a55 100644
--- a/llvm/test/Object/invalid.test
+++ b/llvm/test/Object/invalid.test
@@ -76,3 +76,6 @@ INVALID-SEC-ADDRESS-ALIGNMENT: Invalid data was encountered while parsing the fi
RUN: not llvm-readobj -t %p/Inputs/invalid-section-size2.elf 2>&1 | \
RUN: FileCheck --check-prefix=INVALID-SECTION-SIZE2 %s
INVALID-SECTION-SIZE2: Invalid data was encountered while parsing the file.
+
+RUN: not llvm-readobj -t %p/Inputs/invalid-sections-num.elf 2>&1 | FileCheck --check-prefix=INVALID-SECTION-NUM %s
+INVALID-SECTION-NUM: Invalid data was encountered while parsing the file.
OpenPOWER on IntegriCloud