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

Unified Diff: test/Transforms/MinSFI/sandbox-indirect-calls-invalid-call.ll

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 years, 10 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/Transforms/MinSFI/sandbox-indirect-calls-invalid-call.ll
diff --git a/test/Transforms/MinSFI/sandbox-indirect-calls-invalid-call.ll b/test/Transforms/MinSFI/sandbox-indirect-calls-invalid-call.ll
new file mode 100644
index 0000000000000000000000000000000000000000..9af3e5ae42884b13142cc037f1a26ad937445577
--- /dev/null
+++ b/test/Transforms/MinSFI/sandbox-indirect-calls-invalid-call.ll
@@ -0,0 +1,15 @@
+; RUN: not opt %s -minsfi-sandbox-indirect-calls -S 2>&1 | FileCheck %s
+
+target datalayout = "p:32:32:32"
+target triple = "le32-unknown-nacl"
+
+declare void @fn()
+
+declare i32 @foo(void ()*)
+
+define i32 @bar() {
+ %ret = call i32 @foo(void ()* @fn)
+ ret i32 %ret
+}
+
+; CHECK: Invalid reference to function @fn
« no previous file with comments | « test/Transforms/MinSFI/sandbox-indirect-calls.ll ('k') | test/Transforms/MinSFI/sandbox-indirect-calls-wrong-use.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698