diff options
author | Chris Lattner <sabre@nondot.org> | 2008-10-06 07:43:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-10-06 07:43:09 +0000 |
commit | eb52b44caf9afbf4bfaf0e3e6f9426d90492b85b (patch) | |
tree | 38b1168ce4f26ed0bcba18ac223b5103e56effd2 /test/CodeGen/cfstring2.c | |
parent | 506ff88f44562df267b6a06608ab841b76df2a2b (diff) |
__CONSTANT_CFSTRINGS__ should be defined even in C mode, otherwise the CFSTR
won't expand to the builtin. This fixes rdar://6248329
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57164 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/cfstring2.c')
-rw-r--r-- | test/CodeGen/cfstring2.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/cfstring2.c b/test/CodeGen/cfstring2.c new file mode 100644 index 0000000000..605b9d5d41 --- /dev/null +++ b/test/CodeGen/cfstring2.c @@ -0,0 +1,13 @@ +// RUN: clang -emit-llvm %s -o %t + +#ifdef __APPLE__ +#include <Carbon/Carbon.h> + +void f() { + CFSTR("Hello, World!"); +} + +// rdar://6248329 +void *G = CFSTR("yo joe"); + +#endif |