summaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-02-18 02:19:52 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-02-18 02:19:52 +0000
commitcaa0c2caddcfb56de09e016c4c153d0609ffcf6e (patch)
tree91bb25a13862692d2b2df61a4a6258551adb2dcf /test/CodeGen
parentccd846b73ffce9296e392e550712926845098fab (diff)
downloadllvm-caa0c2caddcfb56de09e016c4c153d0609ffcf6e.tar.gz
llvm-caa0c2caddcfb56de09e016c4c153d0609ffcf6e.tar.bz2
llvm-caa0c2caddcfb56de09e016c4c153d0609ffcf6e.tar.xz
GV with null value initializer shouldn't go to BSS if it's meant for a mergeable strings section. Currently it only checks for Darwin. Someone else please check if it should apply to other targets as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64877 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/X86/cstring.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CodeGen/X86/cstring.ll b/test/CodeGen/X86/cstring.ll
new file mode 100644
index 0000000000..27d6181db8
--- /dev/null
+++ b/test/CodeGen/X86/cstring.ll
@@ -0,0 +1,4 @@
+; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin | not grep comm
+; rdar://6479858
+
+@str1 = internal constant [1 x i8] zeroinitializer