2015-01-24 05:15:05 +01:00
|
|
|
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
|
2015-01-30 19:13:50 +01:00
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-type-table-forward-ref.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=BAD-TYPE-TABLE-FORWARD-REF %s
|
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-bitwidth.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=BAD-BITWIDTH %s
|
2015-01-24 05:15:05 +01:00
|
|
|
|
|
|
|
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
|
2015-01-30 19:13:50 +01:00
|
|
|
BAD-TYPE-TABLE-FORWARD-REF: Invalid TYPE table: Only named structs can be forward referenced
|
|
|
|
BAD-BITWIDTH: Bitwidth for integer type out of range
|