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).
4 ; REQUIRES: no_minimal_build
6 ; RUN: %p2i --expect-fail -i %s --insts --args \
7 ; RUN: -allow-externally-defined-symbols | FileCheck %s
13 define void @Test(i32 %ifcn) {
15 %fcn = inttoptr i32 %ifcn to i1()*
17 ; CHECK: Return type of function is invalid: i1