1 ; Tests that we don't allow illegal sized parameters on indirect calls.
3 ; REQUIRES: no_minimal_build
5 ; RUN: %p2i --expect-fail -i %s --insts | FileCheck %s
7 define internal void @CallIndirectI32(i32 %f_addr) {
9 %f = inttoptr i32 %f_addr to i32(i8)*
10 %r = call i32 %f(i8 1)
11 ; CHECK: Argument 1 of function has invalid type: i8