Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -emit-llvm %s -o %t |
Chris Lattner | eb52b44 | 2008-10-06 07:43:09 +0000 | [diff] [blame] | 2 | |
Chris Lattner | 372de1d | 2009-04-15 04:26:10 +0000 | [diff] [blame] | 3 | typedef const struct __CFString * CFStringRef; |
| 4 | |
| 5 | #define CFSTR(x) (CFStringRef) __builtin___CFStringMakeConstantString (x) |
Chris Lattner | eb52b44 | 2008-10-06 07:43:09 +0000 | [diff] [blame] | 6 | |
| 7 | void f() { |
| 8 | CFSTR("Hello, World!"); |
| 9 | } |
| 10 | |
Chris Lattner | 4bf203c | 2008-10-06 07:43:28 +0000 | [diff] [blame] | 11 | // rdar://6151192 |
Chris Lattner | eb52b44 | 2008-10-06 07:43:09 +0000 | [diff] [blame] | 12 | void *G = CFSTR("yo joe"); |
| 13 | |