From: Chris Lattner Date: Tue, 30 Jul 2002 00:34:52 +0000 (+0000) Subject: NEw testcase to handle "yet another" return type mismatch possibility X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9559ac287699fcfaca226531a0e9d371f8cf92e3;p=oota-llvm.git 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 --- diff --git a/test/Transforms/FunctionResolve/retmismatch3.ll b/test/Transforms/FunctionResolve/retmismatch3.ll new file mode 100644 index 00000000000..b20b17cf956 --- /dev/null +++ b/test/Transforms/FunctionResolve/retmismatch3.ll @@ -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 +}