From de20d44b3e8833dcf97480f79c33b32b2252f716 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 21 Oct 2003 23:17:45 +0000 Subject: [PATCH] New testcase: globals should be linked if they are the wrong type. We should just moan loudly. llvm-svn: 9358 --- .../FunctionResolve/2003-10-21-GlobalTypeDifference.ll | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 llvm/test/Regression/Transforms/FunctionResolve/2003-10-21-GlobalTypeDifference.ll diff --git a/llvm/test/Regression/Transforms/FunctionResolve/2003-10-21-GlobalTypeDifference.ll b/llvm/test/Regression/Transforms/FunctionResolve/2003-10-21-GlobalTypeDifference.ll new file mode 100644 index 000000000000..4a6028fda43c --- /dev/null +++ b/llvm/test/Regression/Transforms/FunctionResolve/2003-10-21-GlobalTypeDifference.ll @@ -0,0 +1,10 @@ +; RUN: llvm-as < %s | opt -funcresolve -disable-output 2>&1 | grep WARNING + +%X = external global int +%Z = global int* %X + +%X = global float 1.0 +%Y = global float* %X + +implementation +