summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/global-sections.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-29 05:20:33 +0000
committerChris Lattner <sabre@nondot.org>2009-07-29 05:20:33 +0000
commitc5397abb52551ce0c93e8e5c0054c5a85db086d4 (patch)
tree1a4e8f789bb416fd6e90040b8372c9de3abfc36f /llvm/test/CodeGen/X86/global-sections.ll
parentf82326b9848dc24d058e485386f993fcf0835a24 (diff)
downloadbcm5719-llvm-c5397abb52551ce0c93e8e5c0054c5a85db086d4.tar.gz
bcm5719-llvm-c5397abb52551ce0c93e8e5c0054c5a85db086d4.zip
fix PR4584 with a trivial patch now that the pieces are in place.
llvm-svn: 77434
Diffstat (limited to 'llvm/test/CodeGen/X86/global-sections.ll')
-rw-r--r--llvm/test/CodeGen/X86/global-sections.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/global-sections.ll b/llvm/test/CodeGen/X86/global-sections.ll
index ddfb3523910..18a585a9836 100644
--- a/llvm/test/CodeGen/X86/global-sections.ll
+++ b/llvm/test/CodeGen/X86/global-sections.ll
@@ -55,3 +55,16 @@
; DARWIN: _G5:
; DARWIN: .long 47
+
+; PR4584
+@"foo bar" = linkonce global i32 42
+
+; LINUX: .type foo_20_bar,@object
+; LINUX:.section .gnu.linkonce.d.foo_20_bar,"aw",@progbits
+; LINUX: .weak foo_20_bar
+; LINUX: foo_20_bar:
+
+; DARWIN: .section __DATA,__datacoal_nt,coalesced
+; DARWIN: .globl "_foo bar"
+; DARWIN: .weak_definition "_foo bar"
+; DARWIN: "_foo bar":
OpenPOWER on IntegriCloud