summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/global-sections.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-25 17:57:37 +0000
committerChris Lattner <sabre@nondot.org>2009-07-25 17:57:37 +0000
commit10cf6a6a4bdc5a99813cc464030b93466842ffc2 (patch)
tree38254c8b04477e7e65acd6db5b85719f9c54fd64 /test/CodeGen/X86/global-sections.ll
parent7e77f7959162a601291fd5400a88908d021033d3 (diff)
downloadllvm-10cf6a6a4bdc5a99813cc464030b93466842ffc2.tar.gz
llvm-10cf6a6a4bdc5a99813cc464030b93466842ffc2.tar.bz2
llvm-10cf6a6a4bdc5a99813cc464030b93466842ffc2.tar.xz
add the most expedient hack to fix PR4619, along with a testcase.
Thanks to Rafael for the great example. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77083 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/global-sections.ll')
-rw-r--r--test/CodeGen/X86/global-sections.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/global-sections.ll b/test/CodeGen/X86/global-sections.ll
new file mode 100644
index 0000000000..0b4ed3b360
--- /dev/null
+++ b/test/CodeGen/X86/global-sections.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | llc -mtriple=i386-unknown-linux-gnu | FileCheck %s -check-prefix=LINUX
+
+@G1 = common global i32 0
+
+; LINUX: .type G1,@object
+; LINUX: .section .gnu.linkonce.b.G1,"aw",@nobits
+; LINUX: .comm G1,4,4
+