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

Side by Side Diff: tests_lit/parse_errs/call-fcn-bad-return-type.ll

Issue 1678133003: Subzero: Fix trailing whitespace errors. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Rebase Created 4 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
1 ; Test that even if a call return type matches its declaration, it must still be 1 ; Test that even if a call return type matches its declaration, it must still be
2 ; a legal call return type (unless declaration is intrinsic). 2 ; a legal call return type (unless declaration is intrinsic).
3 3
4 ; REQUIRES: no_minimal_build 4 ; REQUIRES: no_minimal_build
5 5
6 ; RUN: %p2i --expect-fail -i %s --insts --args \ 6 ; RUN: %p2i --expect-fail -i %s --insts --args \
7 ; RUN: -allow-externally-defined-symbols | FileCheck %s 7 ; RUN: -allow-externally-defined-symbols | FileCheck %s
8 8
9 declare i32 @f(); 9 declare i32 @f();
10 10
11 declare i64 @g(); 11 declare i64 @g();
12 12
13 define void @Test(i32 %ifcn) { 13 define void @Test(i32 %ifcn) {
14 entry: 14 entry:
15 %fcn = inttoptr i32 %ifcn to i1()* 15 %fcn = inttoptr i32 %ifcn to i1()*
16 %v = call i1 %fcn() 16 %v = call i1 %fcn()
17 ; CHECK: Return type of function is invalid: i1 17 ; CHECK: Return type of function is invalid: i1
18 ret void 18 ret void
19 } 19 }
20
OLDNEW
« no previous file with comments | « tests_lit/parse_errs/call-fcn-bad-param-type.test ('k') | tests_lit/parse_errs/dup-module-vst.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698