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

Side by Side Diff: test/Transforms/MinSFI/sandbox-indirect-calls-wrong-use.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 unified diff | Download patch
OLDNEW
(Empty)
1 ; RUN: not opt %s -minsfi-sandbox-indirect-calls -S 2>&1 | FileCheck %s
2
3 target datalayout = "p:32:32:32"
4 target triple = "le32-unknown-nacl"
5
6 declare i32 @foo(i32)
7
8 define i32 @bar() {
9 %fn = bitcast i32 (i32)* @foo to i32 ()*
10 %ret = call i32 %fn()
11 ret i32 %ret
12 }
13
14 ; CHECK: Invalid reference to function @foo
OLDNEW
« no previous file with comments | « test/Transforms/MinSFI/sandbox-indirect-calls-invalid-call.ll ('k') | test/Transforms/MinSFI/sandbox-memory-accesses.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698