| OLD | NEW |
| 1 ; Test that even if a call parameter matches its declaration, it must still | 1 ; Test that a function parameter must be a legal parameter type (unless |
| 2 ; be a legal call parameter type (unless declaration is intrinsic). | 2 ; declaration is intrinsic). |
| 3 | 3 |
| 4 ; REQUIRES: no_minimal_build | 4 ; REQUIRES: no_minimal_build |
| 5 | 5 |
| 6 ; RUN: %p2i --expect-fail -i %s --insts --args \ | 6 ; RUN: %p2i --expect-fail -i %s --insts --args \ |
| 7 ; RUN: -allow-externally-defined-symbols | FileCheck %s | 7 ; RUN: -allow-externally-defined-symbols | FileCheck %s |
| 8 | 8 |
| 9 declare void @f(i8); | 9 declare void @f(i8); |
| 10 ; CHECK: Invalid type signature for f: void (i8) |
| 10 | 11 |
| 11 define void @Test() { | 12 define void @Test() { |
| 12 entry: | 13 entry: |
| 13 call void @f(i8 1) | 14 call void @f(i8 1) |
| 14 ; CHECK: Argument 1 of f has invalid type: i8 | |
| 15 ret void | 15 ret void |
| 16 } | 16 } |
| OLD | NEW |