summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/test/Regression/Transforms/FunctionResolve/2003-10-21-GlobalTypeDifference.ll10
1 files changed, 10 insertions, 0 deletions
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 00000000000..4a6028fda43
--- /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
+
OpenPOWER on IntegriCloud