OLD | NEW |
(Empty) | |
| 1 ; Test that we report a bug at the same place, independent of a parallel parse. |
| 2 |
| 3 ; REQUIRES: no_minimal_build |
| 4 |
| 5 ; RUN: %p2i --expect-fail -i %s --args -threads=0 -parse-parallel=0 \ |
| 6 ; RUN: -allow-externally-defined-symbols | FileCheck %s |
| 7 |
| 8 ; RUN: %p2i --expect-fail -i %s --args -threads=1 -parse-parallel=1 \ |
| 9 ; RUN: -allow-externally-defined-symbols | FileCheck %s |
| 10 |
| 11 declare i32 @f(); |
| 12 |
| 13 declare i64 @g(); |
| 14 |
| 15 define void @Test(i32 %ifcn) { |
| 16 entry: |
| 17 %fcn = inttoptr i32 %ifcn to i1()* |
| 18 %v = call i1 %fcn() |
| 19 |
| 20 ; CHECK: Error(222:6): Return type of function is invalid: i1 |
| 21 |
| 22 ret void |
| 23 } |
OLD | NEW |