diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-23 19:59:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-23 19:59:55 +0000 |
commit | c4d360d1d4a134e70f6110317b7099af13ff2f96 (patch) | |
tree | 18b9e89ef201a5b8c44e44ea61e7df059ce7570a /test/Transforms | |
parent | 8518e74f3e24b136c627534e30b0068836785575 (diff) | |
download | llvm-c4d360d1d4a134e70f6110317b7099af13ff2f96.tar.gz llvm-c4d360d1d4a134e70f6110317b7099af13ff2f96.tar.bz2 llvm-c4d360d1d4a134e70f6110317b7099af13ff2f96.tar.xz |
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
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/FunctionResolve/2003-08-23-ArgumentWarning.ll | 12 |
1 files changed, 12 insertions, 0 deletions
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 0000000000..9f6bc2ce1e --- /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 +} |