diff options
Diffstat (limited to 'clang/test/Sema/builtins.c')
| -rw-r--r-- | clang/test/Sema/builtins.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/clang/test/Sema/builtins.c b/clang/test/Sema/builtins.c index a23273740c7..7b2f2afbd9c 100644 --- a/clang/test/Sema/builtins.c +++ b/clang/test/Sema/builtins.c @@ -25,10 +25,11 @@ int test6(float a, long double b) { #define CFSTR __builtin___CFStringMakeConstantString void test7() { - CFSTR("\242"); - CFSTR("\0"); // expected-warning {{ CFString literal contains NUL character }} - CFSTR(242); // expected-error {{ CFString literal is not a string constant }} expected-warning {{incompatible integer to pointer conversion}} - CFSTR("foo", "bar"); // expected-error {{too many arguments to function call}} + const void *X; + X = CFSTR("\242"); + X = CFSTR("\0"); // expected-warning {{ CFString literal contains NUL character }} + X = CFSTR(242); // expected-error {{ CFString literal is not a string constant }} expected-warning {{incompatible integer to pointer conversion}} + X = CFSTR("foo", "bar"); // expected-error {{too many arguments to function call}} } |

