OSDN Git Service

Subzero: Replace global pointers to allocation functions
[android-x86/external-swiftshader.git] / tests_lit / parse_errs / call-indirect-i8.ll
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 }