diff options
author | Chris Lattner <sabre@nondot.org> | 2008-10-06 07:26:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-10-06 07:26:43 +0000 |
commit | 506ff88f44562df267b6a06608ab841b76df2a2b (patch) | |
tree | 46b584fbf5003c15facceaa7aa3adb4a9c5393a6 /test/CodeGen/cfstring.c | |
parent | 7cecee8da98e86cf7118d15a0f198b98956089a7 (diff) | |
download | clang-506ff88f44562df267b6a06608ab841b76df2a2b.tar.gz |
Make sema and codegen allow __builtin___CFStringMakeConstantString as a valid
constant lvalue. Implement this in codegen by moving the code out of CGBuiltin
into EmitConstantExpr.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57163 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/cfstring.c')
-rw-r--r-- | test/CodeGen/cfstring.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGen/cfstring.c b/test/CodeGen/cfstring.c index ef42d06283..7d7edeca3c 100644 --- a/test/CodeGen/cfstring.c +++ b/test/CodeGen/cfstring.c @@ -4,3 +4,8 @@ void f() { CFSTR("Hello, World!"); } + +// rdar://6248329 +void *G = CFSTR("yo joe"); + + |