2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm %s -o %t
|
2008-10-06 15:43:09 +08:00
|
|
|
|
2009-04-15 12:26:10 +08:00
|
|
|
typedef const struct __CFString * CFStringRef;
|
|
|
|
|
|
|
|
#define CFSTR(x) (CFStringRef) __builtin___CFStringMakeConstantString (x)
|
2008-10-06 15:43:09 +08:00
|
|
|
|
|
|
|
void f() {
|
|
|
|
CFSTR("Hello, World!");
|
|
|
|
}
|
|
|
|
|
2008-10-06 15:43:28 +08:00
|
|
|
// rdar://6151192
|
2008-10-06 15:43:09 +08:00
|
|
|
void *G = CFSTR("yo joe");
|
|
|
|
|