diff options
author | Ted Kremenek <kremenek@apple.com> | 2013-10-15 05:25:17 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2013-10-15 05:25:17 +0000 |
commit | da2f405b0903ae21577b877ec49892e28eff0d0d (patch) | |
tree | fcb14f40d46c272a22cb442e5c3fae9496fbee7f /clang/test/FixIt/format.mm | |
parent | ef9e993eaa9dd8cb5afe6e1efd2ed4cf5973a4c7 (diff) | |
download | bcm5719-llvm-da2f405b0903ae21577b877ec49892e28eff0d0d.tar.gz bcm5719-llvm-da2f405b0903ae21577b877ec49892e28eff0d0d.zip |
Special case '%C' handling in ObjC format strings to handle integer literals that can represent unicode characters
Fixes <rdar://problem/13991617>.
llvm-svn: 192673
Diffstat (limited to 'clang/test/FixIt/format.mm')
-rw-r--r-- | clang/test/FixIt/format.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/FixIt/format.mm b/clang/test/FixIt/format.mm index 64c6c47b9b6..9d89c062faa 100644 --- a/clang/test/FixIt/format.mm +++ b/clang/test/FixIt/format.mm @@ -11,7 +11,7 @@ void test_percent_C() { NSLog(@"%C", wchar_data); // expected-warning{{format specifies type 'unichar' (aka 'unsigned short') but the argument has type 'wchar_t'}} // CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:16-[[@LINE-1]]:16}:"(unsigned short)" - NSLog(@"%C", 0x2603); // expected-warning{{format specifies type 'unichar' (aka 'unsigned short') but the argument has type 'int'}} + NSLog(@"%C", 0x260300); // expected-warning{{format specifies type 'unichar' (aka 'unsigned short') but the argument has type 'int'}} // CHECK-NOT: fix-it:"{{.*}}":{[[@LINE-1]]:11-[[@LINE-1]]:13}:"%d" // CHECK: fix-it:"{{.*}}":{[[@LINE-2]]:16-[[@LINE-2]]:16}:"(unsigned short)" @@ -20,7 +20,7 @@ void test_percent_C() { NSLog(@"%C", wchar_data); // expected-warning{{format specifies type 'unichar' (aka 'unsigned short') but the argument has type 'wchar_t'}} // CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:16-[[@LINE-1]]:16}:"(unichar)" - NSLog(@"%C", 0x2603); // expected-warning{{format specifies type 'unichar' (aka 'unsigned short') but the argument has type 'int'}} + NSLog(@"%C", 0x260300); // expected-warning{{format specifies type 'unichar' (aka 'unsigned short') but the argument has type 'int'}} // CHECK-NOT: fix-it:"{{.*}}":{[[@LINE-1]]:11-[[@LINE-1]]:13}:"%d" // CHECK: fix-it:"{{.*}}":{[[@LINE-2]]:16-[[@LINE-2]]:16}:"(unichar)" |