summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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()