new testcase: we warn if we are merging together two functions whose argument
authorChris Lattner <sabre@nondot.org>
Sat, 23 Aug 2003 19:59:55 +0000 (19:59 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 23 Aug 2003 19:59:55 +0000 (19:59 +0000)
types to not match, but we should not warn unless their _primitive_ types mismatch

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8075 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/FunctionResolve/2003-08-23-ArgumentWarning.ll [new file with mode: 0644]

diff --git a/test/Transforms/FunctionResolve/2003-08-23-ArgumentWarning.ll b/test/Transforms/FunctionResolve/2003-08-23-ArgumentWarning.ll
new file mode 100644 (file)
index 0000000..9f6bc2c
--- /dev/null
@@ -0,0 +1,12 @@
+; RUN: as < %s | opt -funcresolve -disable-output 2>&1 | not grep WARNING
+
+declare int %foo(int *%X)
+declare int %foo(float *%X)
+
+implementation
+
+void %test() {
+  call int %foo(int* null)
+  call int %foo(float* null)
+  ret void
+}