Index: tests_lit/parse_errs/bad-bb-size.test |
diff --git a/tests_lit/parse_errs/bad-bb-size.test b/tests_lit/parse_errs/bad-bb-size.test |
new file mode 100644 |
index 0000000000000000000000000000000000000000..012e09d25a1044aff59014407a9cedd9dd230b87 |
--- /dev/null |
+++ b/tests_lit/parse_errs/bad-bb-size.test |
@@ -0,0 +1,10 @@ |
+; Test if we recognize a bad basic block count in a function block. |
+ |
+; REQUIRES: no_minimal_build |
+ |
+; RUN: not %pnacl_sz -bitcode-as-text %p/Inputs/bad-bb-size.tbc \ |
+; RUN: -bitcode-format=pnacl -notranslate -no-ir-gen -build-on-read 2>&1 \ |
+; RUN: | FileCheck %s |
+ |
+; CHECK: Function defines 3105555534 basic blocks, which is too big for a function containing 36 bytes |
+ |