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 |
+ |