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

Unified Diff: tests_lit/parse_errs/dup-module-vst.test

Issue 1345293002: Don't allow multiple symbol tables in the module block. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 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/dup-module-vst.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/dup-module-vst.test
diff --git a/tests_lit/parse_errs/dup-module-vst.test b/tests_lit/parse_errs/dup-module-vst.test
new file mode 100644
index 0000000000000000000000000000000000000000..fd285317106aa2f2f6c5b3c0d2f6da46f3ebe97b
--- /dev/null
+++ b/tests_lit/parse_errs/dup-module-vst.test
@@ -0,0 +1,22 @@
+; Test if we detect multiple module-level symbol tables in bitcode.
+
+; REQUIRES: no_minimal_build
+
+; RUN: not %pnacl_sz -bitcode-as-text %p/Inputs/dup-module-vst.tbc \
+; RUN: -bitcode-format=pnacl -notranslate -build-on-read 2>&1 \
+; RUN: | FileCheck %s
+
+; CHECK: Duplicate valuesymtab in module
+
+; RUN: pnacl-bcfuzz -bitcode-as-text %p/Inputs/dup-module-vst.tbc \
+; RUN: -output - | pnacl-bcdis -no-records | FileCheck -check-prefix=ASM %s
+
+; ASM: module { // BlockID = 8
+; ASM: valuesymtab { // BlockID = 14
+; ASM: @f0 : "f";
+; ASM: }
+; ASM: valuesymtab { // BlockID = 14
+; ASM: @f0 : "f";
+; ASM: }
+; ASM: }
+
« no previous file with comments | « tests_lit/parse_errs/Inputs/dup-module-vst.tbc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698