blob: c760f5dcf5ebb1476a9d918c249e8092a320d53d [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -emit-llvm %s -o %t
Chris Lattnereb52b442008-10-06 07:43:09 +00002
Chris Lattner372de1d2009-04-15 04:26:10 +00003typedef const struct __CFString * CFStringRef;
4
5#define CFSTR(x) (CFStringRef) __builtin___CFStringMakeConstantString (x)
Chris Lattnereb52b442008-10-06 07:43:09 +00006
7void f() {
8 CFSTR("Hello, World!");
9}
10
Chris Lattner4bf203c2008-10-06 07:43:28 +000011// rdar://6151192
Chris Lattnereb52b442008-10-06 07:43:09 +000012void *G = CFSTR("yo joe");
13