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

Side by Side Diff: tests_lit/parse_errs/call-indirect-i8.ll

Issue 1354673002: Fix call instructions to check parameter types for consistency. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: remove typo Created 5 years, 3 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 ; Tests that we don't allow illegal sized parameters on indirect calls.
2
3 ; REQUIRES: no_minimal_build
4
5 ; RUN: %p2i --expect-fail -i %s --insts | FileCheck %s
6
7 define void @CallIndirectI32(i32 %f_addr) {
8 entry:
9 %f = inttoptr i32 %f_addr to i32(i8)*
10 %r = call i32 %f(i8 1)
11 ; CHECK: Call argument 1 has invalid type: i8
12 ret void
13 }
OLDNEW
« no previous file with comments | « tests_lit/parse_errs/call-fcn-bad-return-type.ll ('k') | tests_lit/reader_tests/call-indirect.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698