diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-03-15 21:18:52 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-03-15 21:18:52 +0000 |
commit | db9e9e61f8311d8852bd15730f78e56f3ffa0508 (patch) | |
tree | 810a121837245db449e83166f11026b2975e8611 /test/Sema/builtins.c | |
parent | 0c06944f5ef31cc6356e30da2971fa5439c4c8ef (diff) |
Remove warning for null characters in CFString literals. Clang handles them just fine, and GCC 4.2 doesn't warn here either.
We added this warning back in 2007 when we were comparing against GCC 4.0.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127704 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/builtins.c')
-rw-r--r-- | test/Sema/builtins.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/builtins.c b/test/Sema/builtins.c index 4072faa94b..64efefc7fd 100644 --- a/test/Sema/builtins.c +++ b/test/Sema/builtins.c @@ -27,7 +27,7 @@ int test6(float a, long double b) { void test7() { const void *X; X = CFSTR("\242"); // expected-warning {{input conversion stopped}} - X = CFSTR("\0"); // expected-warning {{ CFString literal contains NUL character }} + X = CFSTR("\0"); // no-warning 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}} } |