Index: tests_lit/parse_errs/bad-var-fwdref.test |
diff --git a/tests_lit/parse_errs/bad-var-fwdref.test b/tests_lit/parse_errs/bad-var-fwdref.test |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a23dc075845ca3b57107762d098610cf8a11d4ba |
--- /dev/null |
+++ b/tests_lit/parse_errs/bad-var-fwdref.test |
@@ -0,0 +1,10 @@ |
+; Test if we recognize a forward reference that can't be in function block. |
+ |
+; REQUIRES: no_minimal_build |
+ |
+; RUN: not %pnacl_sz -bitcode-as-text %p/Inputs/bad-var-fwdref.tbc \ |
+; RUN: -bitcode-format=pnacl -notranslate -no-ir-gen -build-on-read 2>&1 \ |
+; RUN: | FileCheck %s |
+ |
+; CHECK: Forward reference @3105555534 too big. Have 1 globals and function contains 16 bytes |
+ |