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

Unified Diff: test/NaCl/Bitcode/pnacl-bcdis/invalid.test

Issue 1283353002: Fix handling errors in switch instruction by PNaCl bitcode reader. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Use unique_ptr for switch instruction. 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
Index: test/NaCl/Bitcode/pnacl-bcdis/invalid.test
diff --git a/test/NaCl/Bitcode/pnacl-bcdis/invalid.test b/test/NaCl/Bitcode/pnacl-bcdis/invalid.test
index 222168501a25df8ab5739eb8cdd03082413ddf58..d28ddd9415d2dfea49b32a0dbdc01441642b2a46 100644
--- a/test/NaCl/Bitcode/pnacl-bcdis/invalid.test
+++ b/test/NaCl/Bitcode/pnacl-bcdis/invalid.test
@@ -10,3 +10,9 @@ RUN: | not pnacl-thaw --verbose-parse-errors -o /dev/null 2>&1 \
RUN: | FileCheck -check-prefix=TOO-MANY-BBS-DECLARED %s
TOO-MANY-BBS-DECLARED: Declared 2 basic blocks. Found: 1
+
+RUN: pnacl-bcfuzz -bitcode-as-text %p/Inputs/bad-switch-case.tbc -output - \
+RUN: | not pnacl-thaw --verbose-parse-errors -o /dev/null 2>&1 \
+RUN: | FileCheck -check-prefix=BAD-SWITCH-CASE %s
+
+BAD-SWITCH-CASE: Invalid branch in SWITCH case

Powered by Google App Engine
This is Rietveld 408576698