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

Unified Diff: tests_lit/llvm2ice_tests/invalid.test

Issue 1210013005: Fixes case where terminator instruction is missing at end of function. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 5 years, 6 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
« tests_lit/lit.cfg ('K') | « tests_lit/llvm2ice_tests/Input/no-terminator-inst.tbc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/llvm2ice_tests/invalid.test
diff --git a/tests_lit/llvm2ice_tests/invalid.test b/tests_lit/llvm2ice_tests/invalid.test
new file mode 100644
index 0000000000000000000000000000000000000000..10544843b69c3369c2c22e4c111bb692850b13e2
--- /dev/null
+++ b/tests_lit/llvm2ice_tests/invalid.test
@@ -0,0 +1,7 @@
+; Test that we handle functions that don't end with terminator instruction.
Jim Stichnoth 2015/06/29 22:43:12 with a terminator
Karl 2015/06/30 18:46:09 Done.
+; See issue: https://code.google.com/p/nativeclient/issues/detail?id=4214
+
+RUN: %p2i --fail --tbc -i %p/Input/no-terminator-inst.tbc --insts \
+RUN: | FileCheck --check-prefix=NO-TERM-INST %s
+
+; NO-TERM-INST: Last instruction in function not terminator
« tests_lit/lit.cfg ('K') | « tests_lit/llvm2ice_tests/Input/no-terminator-inst.tbc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698