diff options
Diffstat (limited to 'llvm/test/Other/lint.ll')
-rw-r--r-- | llvm/test/Other/lint.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/Other/lint.ll b/llvm/test/Other/lint.ll index 9a10abf3c70..dee3d11d2fb 100644 --- a/llvm/test/Other/lint.ll +++ b/llvm/test/Other/lint.ll @@ -154,3 +154,12 @@ exit: %x = volatile load i32* %t3 br label %exit } + +; CHECK: Call return type mismatches callee return type +%struct = type { double, double } +declare i32 @nonstruct_callee() nounwind +define void @struct_caller() nounwind { +entry: + call %struct bitcast (i32 ()* @foo to %struct ()*)() + ret void +} |