Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: tests_lit/parse_errs/bad-var-fwdref.test

Issue 1293923002: Restore function-local variables to use a vector. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nit. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/PNaClTranslator.cpp ('K') | « tests_lit/parse_errs/Inputs/bad-var-fwdref.tbc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
+
« src/PNaClTranslator.cpp ('K') | « tests_lit/parse_errs/Inputs/bad-var-fwdref.tbc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698