aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/cfstring.c
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-01-25 01:54:01 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-01-25 01:54:01 +0000
commit3941b18b8e441c8c466efecd557de60b9a32d10b (patch)
tree1de7266d1da145299e6fc11abca47169e52b5c03 /test/CodeGen/cfstring.c
parentf01158941ba4560c63150032073bb231ce38999e (diff)
Make the constant folder aware of
__builtin___CFStringMakeConstantString. (We get into trouble in GenerateStaticBlockVarDecl if the constant folder isn't accurate.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62949 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/cfstring.c')
-rw-r--r--test/CodeGen/cfstring.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CodeGen/cfstring.c b/test/CodeGen/cfstring.c
index 7d7edeca3c..3bd1a2d183 100644
--- a/test/CodeGen/cfstring.c
+++ b/test/CodeGen/cfstring.c
@@ -8,4 +8,6 @@ void f() {
// rdar://6248329
void *G = CFSTR("yo joe");
-
+void h() {
+ static void* h = CFSTR("Goodbye, World!");
+}