NEw testcase to handle "yet another" return type mismatch possibility
authorChris Lattner <sabre@nondot.org>
Tue, 30 Jul 2002 00:34:52 +0000 (00:34 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 30 Jul 2002 00:34:52 +0000 (00:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3138 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/FunctionResolve/retmismatch3.ll [new file with mode: 0644]

diff --git a/test/Transforms/FunctionResolve/retmismatch3.ll b/test/Transforms/FunctionResolve/retmismatch3.ll
new file mode 100644 (file)
index 0000000..b20b17c
--- /dev/null
@@ -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
+}