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

Unified Diff: tests_lit/llvm2ice_tests/prune_unreachable.ll

Issue 1387963002: Make sure that all globals are internal, except for "start" functions. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix new tests. Created 5 years, 2 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: tests_lit/llvm2ice_tests/prune_unreachable.ll
diff --git a/tests_lit/llvm2ice_tests/prune_unreachable.ll b/tests_lit/llvm2ice_tests/prune_unreachable.ll
index 0c77acd1a8dfeb41332fe33505cd52bfe5f321f5..7ce93e96d964f8faedcfb0e2be0469af2bed5519 100644
--- a/tests_lit/llvm2ice_tests/prune_unreachable.ll
+++ b/tests_lit/llvm2ice_tests/prune_unreachable.ll
@@ -1,12 +1,14 @@
; This tests that unreachable basic blocks are pruned from the CFG, so that
; liveness analysis doesn't detect inconsistencies.
-; RUN: %p2i -i %s --filetype=obj --disassemble --args -Om1 | FileCheck %s
-; RUN: %p2i -i %s --filetype=obj --disassemble --args -O2 | FileCheck %s
+; RUN: %p2i -i %s --filetype=obj --disassemble --args -Om1 \
+; RUN: -allow-externally-defined-symbols | FileCheck %s
+; RUN: %p2i -i %s --filetype=obj --disassemble --args -O2 \
+; RUN: -allow-externally-defined-symbols | FileCheck %s
declare void @abort()
-define i32 @unreachable_block() {
+define internal i32 @unreachable_block() {
entry:
; ret_val has no reaching uses and so its assignment may be
; dead-code eliminated.
« no previous file with comments | « tests_lit/llvm2ice_tests/phi_invalid.test ('k') | tests_lit/llvm2ice_tests/randomize-pool-immediate-basic.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698