New testcase: globals should be linked if they are the wrong type. We should
authorChris Lattner <sabre@nondot.org>
Tue, 21 Oct 2003 23:17:45 +0000 (23:17 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 21 Oct 2003 23:17:45 +0000 (23:17 +0000)
just moan loudly.

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

test/Transforms/FunctionResolve/2003-10-21-GlobalTypeDifference.ll [new file with mode: 0644]

diff --git a/test/Transforms/FunctionResolve/2003-10-21-GlobalTypeDifference.ll b/test/Transforms/FunctionResolve/2003-10-21-GlobalTypeDifference.ll
new file mode 100644 (file)
index 0000000..4a6028f
--- /dev/null
@@ -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
+