aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/CBackend/2002-05-16-NameCollide.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/CBackend/2002-05-16-NameCollide.ll')
-rw-r--r--test/CodeGen/CBackend/2002-05-16-NameCollide.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/CBackend/2002-05-16-NameCollide.ll b/test/CodeGen/CBackend/2002-05-16-NameCollide.ll
new file mode 100644
index 0000000..249927d
--- /dev/null
+++ b/test/CodeGen/CBackend/2002-05-16-NameCollide.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=c
+
+; Make sure that global variables do not collide if they have the same name,
+; but different types.
+
+%X = global int 5
+%X = global long 7