OLD | NEW |
---|---|
(Empty) | |
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 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: Call argument 1 has invalid type: i8 | |
12 ret void | |
13 } | |
OLD | NEW |