summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-15 04:26:10 +0000
committerChris Lattner <sabre@nondot.org>2009-04-15 04:26:10 +0000
commite94e13ca35b48e30ae2b83d25e302d96738b4068 (patch)
tree037f36e63ea5be11f72871eafab80e998ddac86c /clang/test
parentc483bd07242f7cdf82ab62367052709df18c389c (diff)
downloadbcm5719-llvm-e94e13ca35b48e30ae2b83d25e302d96738b4068.tar.gz
bcm5719-llvm-e94e13ca35b48e30ae2b83d25e302d96738b4068.zip
remove #include of system header, making this a) not apple specific, and
b) test dramatically faster. llvm-svn: 69135
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CodeGen/cfstring2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/CodeGen/cfstring2.c b/clang/test/CodeGen/cfstring2.c
index 7b808b4aab4..ceefeb9e832 100644
--- a/clang/test/CodeGen/cfstring2.c
+++ b/clang/test/CodeGen/cfstring2.c
@@ -1,7 +1,8 @@
// RUN: clang-cc -emit-llvm %s -o %t
-#ifdef __APPLE__
-#include <Carbon/Carbon.h>
+typedef const struct __CFString * CFStringRef;
+
+#define CFSTR(x) (CFStringRef) __builtin___CFStringMakeConstantString (x)
void f() {
CFSTR("Hello, World!");
@@ -10,4 +11,3 @@ void f() {
// rdar://6151192
void *G = CFSTR("yo joe");
-#endif
OpenPOWER on IntegriCloud