Home | History | Annotate | Download | only in parse_errs
      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 internal 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: Argument 1 of function has invalid type: i8
     12   ret void
     13 }
     14