From 4b611631bc5dad85a22aed790c59b18d7fa58a84 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 21 Oct 2003 23:17:45 +0000 Subject: New testcase: globals should be linked if they are the wrong type. We should just moan loudly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9358 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../FunctionResolve/2003-10-21-GlobalTypeDifference.ll | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/Transforms/FunctionResolve/2003-10-21-GlobalTypeDifference.ll (limited to 'test') diff --git a/test/Transforms/FunctionResolve/2003-10-21-GlobalTypeDifference.ll b/test/Transforms/FunctionResolve/2003-10-21-GlobalTypeDifference.ll new file mode 100644 index 0000000000..4a6028fda4 --- /dev/null +++ b/test/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 + -- cgit v1.2.3