mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 07:31:53 +00:00
NEw testcase to handle "yet another" return type mismatch possibility
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3138 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
446698b63d
commit
9559ac2876
12
test/Transforms/FunctionResolve/retmismatch3.ll
Normal file
12
test/Transforms/FunctionResolve/retmismatch3.ll
Normal file
@ -0,0 +1,12 @@
|
||||
; RUN: as < %s | opt -funcresolve
|
||||
|
||||
declare int %read(...)
|
||||
|
||||
long %read(int %fildes, sbyte* %buf, ulong %nbyte) {
|
||||
ret long 0
|
||||
}
|
||||
|
||||
int %testfunc() {
|
||||
%X = call int(...)* %read()
|
||||
ret int %X
|
||||
}
|
Loading…
Reference in New Issue
Block a user