Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm %s -o %t |
Anders Carlsson | f06273f | 2007-11-19 00:25:30 +0000 | [diff] [blame] | 2 | #define CFSTR __builtin___CFStringMakeConstantString |
| 3 | |
| 4 | void f() { |
| 5 | CFSTR("Hello, World!"); |
Daniel Dunbar | 2d6ca8d | 2008-08-21 02:51:29 +0000 | [diff] [blame] | 6 | } |
Chris Lattner | 506ff88 | 2008-10-06 07:26:43 +0000 | [diff] [blame] | 7 | |
| 8 | // rdar://6248329 |
| 9 | void *G = CFSTR("yo joe"); |
| 10 | |
Eli Friedman | 3941b18 | 2009-01-25 01:54:01 +0000 | [diff] [blame] | 11 | void h() { |
| 12 | static void* h = CFSTR("Goodbye, World!"); |
| 13 | } |