New, horrible, testcase
authorChris Lattner <sabre@nondot.org>
Wed, 14 Jul 2004 22:59:47 +0000 (22:59 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 14 Jul 2004 22:59:47 +0000 (22:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14829 91177308-0d34-0410-b5e6-96231b3b80d8

test/Feature/globalredefinition.ll [new file with mode: 0644]

diff --git a/test/Feature/globalredefinition.ll b/test/Feature/globalredefinition.ll
new file mode 100644 (file)
index 0000000..793554a
--- /dev/null
@@ -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()