From 9559ac287699fcfaca226531a0e9d371f8cf92e3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 30 Jul 2002 00:34:52 +0000 Subject: [PATCH] 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 --- test/Transforms/FunctionResolve/retmismatch3.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/Transforms/FunctionResolve/retmismatch3.ll 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 +}