From c4d360d1d4a134e70f6110317b7099af13ff2f96 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 23 Aug 2003 19:59:55 +0000 Subject: [PATCH] new testcase: we warn if we are merging together two functions whose argument 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 --- .../FunctionResolve/2003-08-23-ArgumentWarning.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/Transforms/FunctionResolve/2003-08-23-ArgumentWarning.ll diff --git a/test/Transforms/FunctionResolve/2003-08-23-ArgumentWarning.ll b/test/Transforms/FunctionResolve/2003-08-23-ArgumentWarning.ll new file mode 100644 index 00000000000..9f6bc2ce1ed --- /dev/null +++ b/test/Transforms/FunctionResolve/2003-08-23-ArgumentWarning.ll @@ -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 +}