diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-30 00:34:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-30 00:34:52 +0000 |
commit | 9559ac287699fcfaca226531a0e9d371f8cf92e3 (patch) | |
tree | 6de845f81e9e65fbcea0466c8ce3d1680d0f77da | |
parent | 446698b63d574f44b730c6d6d63f9035ad701c5d (diff) |
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
-rw-r--r-- | test/Transforms/FunctionResolve/retmismatch3.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Transforms/FunctionResolve/retmismatch3.ll b/test/Transforms/FunctionResolve/retmismatch3.ll new file mode 100644 index 0000000000..b20b17cf95 --- /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 +} |