[BitcodeReader] Make sure abbrev records have at least one operand (record code)
[oota-llvm.git] / test / Bitcode / invalid.test
index bd6e265cbb37378f57160324b8b6451961ce2291..9c9d54fad6c373ac6f5fd4bca4de38a91059926c 100644 (file)
@@ -172,3 +172,8 @@ RUN: not llvm-dis -disable-output %p/Inputs/invalid-global-var-comdat-id.bc 2>&1
 RUN:   FileCheck --check-prefix=INVALID-GVCOMDAT-ID %s
 
 INVALID-GVCOMDAT-ID: Invalid global variable comdat ID
+
+RUN: not llvm-dis -disable-output %p/Inputs/invalid-abbrev-no-operands.bc 2>&1 | \
+RUN:   FileCheck --check-prefix=ABBREV-NO-OPS %s
+
+ABBREV-NO-OPS: Abbrev record with no operands