summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-14 22:59:47 +0000
committerChris Lattner <sabre@nondot.org>2004-07-14 22:59:47 +0000
commitf05591d35992dd22f1b5408dfa12c2da5900e6f5 (patch)
treee57b56f411fe363fca5b5ebe57364ea76bb43119 /test
parent8a32784ad4a2110c4c73189c3314289c407a6183 (diff)
downloadllvm-f05591d35992dd22f1b5408dfa12c2da5900e6f5.tar.gz
llvm-f05591d35992dd22f1b5408dfa12c2da5900e6f5.tar.bz2
llvm-f05591d35992dd22f1b5408dfa12c2da5900e6f5.tar.xz
New, horrible, testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14829 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Feature/globalredefinition.ll18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/Feature/globalredefinition.ll b/test/Feature/globalredefinition.ll
new file mode 100644
index 0000000000..793554a2c7
--- /dev/null
+++ b/test/Feature/globalredefinition.ll
@@ -0,0 +1,18 @@
+; Test forward references and redefinitions of globals
+
+%Y = global void()* %X
+
+%A = global int* %B
+%B = global int 7
+%B = global int 7
+
+
+declare void %X()
+
+declare void %X()
+
+void %X() {
+ ret void
+}
+
+declare void %X()