diff options
author | Dan Gohman <gohman@apple.com> | 2010-07-12 18:02:04 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-07-12 18:02:04 +0000 |
commit | 545d00645c224e3734a11a6b9b95c8f153de1d8d (patch) | |
tree | 160fed2c8a397763c6bc53c22a60baff369cae50 /test/Other/lint.ll | |
parent | 81ea00f45d59953d34a1db4973dd72d14080ab15 (diff) |
Add a lint check for mismatched return types, inspired by PR6944.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108162 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Other/lint.ll')
-rw-r--r-- | test/Other/lint.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Other/lint.ll b/test/Other/lint.ll index 9a10abf3c7..dee3d11d2f 100644 --- a/test/Other/lint.ll +++ b/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 +} |