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

Side by Side Diff: tests_lit/parse_errs/call-indirect-i8.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 unified diff | Download patch
OLDNEW
1 ; Tests that we don't allow illegal sized parameters on indirect calls. 1 ; Tests that we don't allow illegal sized parameters on indirect calls.
2 2
3 ; REQUIRES: no_minimal_build 3 ; REQUIRES: no_minimal_build
4 4
5 ; RUN: %p2i --expect-fail -i %s --insts | FileCheck %s 5 ; RUN: %p2i --expect-fail -i %s --insts | FileCheck %s
6 6
7 define void @CallIndirectI32(i32 %f_addr) { 7 define internal void @CallIndirectI32(i32 %f_addr) {
8 entry: 8 entry:
9 %f = inttoptr i32 %f_addr to i32(i8)* 9 %f = inttoptr i32 %f_addr to i32(i8)*
10 %r = call i32 %f(i8 1) 10 %r = call i32 %f(i8 1)
11 ; CHECK: Argument 1 of function has invalid type: i8 11 ; CHECK: Argument 1 of function has invalid type: i8
12 ret void 12 ret void
13 } 13 }
OLDNEW
« no previous file with comments | « tests_lit/parse_errs/call-fcn-bad-return-type.ll ('k') | tests_lit/parse_errs/fcn-value-index-isnt-defined.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698