diff options
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r-- | llvm/test/Bitcode/Inputs/invalid-abbrev.bc | bin | 0 -> 129 bytes | |||
-rw-r--r-- | llvm/test/Bitcode/Inputs/invalid-bad-abbrev-number.bc | 1 | ||||
-rw-r--r-- | llvm/test/Bitcode/Inputs/invalid-unexpected-eof.bc | 1 | ||||
-rw-r--r-- | llvm/test/Bitcode/invalid.test | 14 |
4 files changed, 15 insertions, 1 deletions
diff --git a/llvm/test/Bitcode/Inputs/invalid-abbrev.bc b/llvm/test/Bitcode/Inputs/invalid-abbrev.bc Binary files differnew file mode 100644 index 00000000000..4e8f3944b84 --- /dev/null +++ b/llvm/test/Bitcode/Inputs/invalid-abbrev.bc diff --git a/llvm/test/Bitcode/Inputs/invalid-bad-abbrev-number.bc b/llvm/test/Bitcode/Inputs/invalid-bad-abbrev-number.bc new file mode 100644 index 00000000000..e4e1fb3e4b3 --- /dev/null +++ b/llvm/test/Bitcode/Inputs/invalid-bad-abbrev-number.bc @@ -0,0 +1 @@ +BCÀÞ!0000000000
\ No newline at end of file diff --git a/llvm/test/Bitcode/Inputs/invalid-unexpected-eof.bc b/llvm/test/Bitcode/Inputs/invalid-unexpected-eof.bc new file mode 100644 index 00000000000..a487393d066 --- /dev/null +++ b/llvm/test/Bitcode/Inputs/invalid-unexpected-eof.bc @@ -0,0 +1 @@ +BCÀÞ!00000000000000000000
\ No newline at end of file diff --git a/llvm/test/Bitcode/invalid.test b/llvm/test/Bitcode/invalid.test index 5f88da45f6a..19ef3267cc6 100644 --- a/llvm/test/Bitcode/invalid.test +++ b/llvm/test/Bitcode/invalid.test @@ -1 +1,13 @@ -RUN: not llvm-dis -disable-output %p/Inputs/invalid-pr20485.bc +RUN: not llvm-dis -disable-output %p/Inputs/invalid-pr20485.bc 2>&1 | \ +RUN: FileCheck --check-prefix=INVALID-ENCODING %s +RUN: not llvm-dis -disable-output %p/Inputs/invalid-abbrev.bc 2>&1 | \ +RUN: FileCheck --check-prefix=BAD-ABBREV %s +RUN: not llvm-dis -disable-output %p/Inputs/invalid-unexpected-eof.bc 2>&1 | \ +RUN: FileCheck --check-prefix=UNEXPECTED-EOF %s +RUN: not llvm-dis -disable-output %p/Inputs/invalid-bad-abbrev-number.bc 2>&1 | \ +RUN: FileCheck --check-prefix=BAD-ABBREV-NUMBER %s + +INVALID-ENCODING: Invalid encoding +BAD-ABBREV: Abbreviation starts with an Array or a Blob +UNEXPECTED-EOF: Unexpected end of file +BAD-ABBREV-NUMBER: Invalid abbrev number |