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

Unified Diff: tests_lit/parse_errs/bad-global-alignment.test

Issue 1378163002: Add check to verify alignment on global variables. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix issues in patch set 2. Created 5 years, 3 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
« no previous file with comments | « tests_lit/parse_errs/Inputs/bad-global-alignment.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-global-alignment.test
diff --git a/tests_lit/parse_errs/bad-global-alignment.test b/tests_lit/parse_errs/bad-global-alignment.test
new file mode 100644
index 0000000000000000000000000000000000000000..20cab3583b49c8a878878c1bd09f7dbfc8ed3603
--- /dev/null
+++ b/tests_lit/parse_errs/bad-global-alignment.test
@@ -0,0 +1,12 @@
+; Test that we check that alignment on global variables can't be greater
+; than 2**29.
+
+
+; REQUIRES: no_minimal_build
+
+; RUN: not %pnacl_sz -bitcode-as-text %p/Inputs/bad-global-alignment.tbc \
+; RUN: -bitcode-format=pnacl -notranslate -no-ir-gen -build-on-read 2>&1 \
+; RUN: | FileCheck %s
+
+; CHECK: Global variable alignment greater than 2**29. Found: 2**30
+
« no previous file with comments | « tests_lit/parse_errs/Inputs/bad-global-alignment.tbc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698