summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-21 23:17:45 +0000
committerChris Lattner <sabre@nondot.org>2003-10-21 23:17:45 +0000
commit4b611631bc5dad85a22aed790c59b18d7fa58a84 (patch)
tree59567a218b75356808f358c3b9ac9546ad97715c /test
parentaeb18ce9c012f8554f48bae9bb32351c6eeaa26c (diff)
downloadllvm-4b611631bc5dad85a22aed790c59b18d7fa58a84.tar.gz
llvm-4b611631bc5dad85a22aed790c59b18d7fa58a84.tar.bz2
llvm-4b611631bc5dad85a22aed790c59b18d7fa58a84.tar.xz
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
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/FunctionResolve/2003-10-21-GlobalTypeDifference.ll10
1 files changed, 10 insertions, 0 deletions
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
+