diff options
author | Nathan Huckleberry <nhuck@google.com> | 2019-08-23 18:01:57 +0000 |
---|---|---|
committer | Nathan Huckleberry <nhuck@google.com> | 2019-08-23 18:01:57 +0000 |
commit | cc01d6421f4a896820c02da2ea92b82d973b431e (patch) | |
tree | 90e9cb68fbceb82f0bc4438cd5654833dcf1aa1f /clang/test/FixIt | |
parent | 30232770fbe5f5df7d5d01bd418c5ef9cc76b75e (diff) | |
download | bcm5719-llvm-cc01d6421f4a896820c02da2ea92b82d973b431e.tar.gz bcm5719-llvm-cc01d6421f4a896820c02da2ea92b82d973b431e.zip |
[Sema] Don't warn on printf('%hd', [char]) (PR41467)
Summary: Link: https://bugs.llvm.org/show_bug.cgi?id=41467
Reviewers: rsmith, nickdesaulniers, aaron.ballman, lebedev.ri
Reviewed By: nickdesaulniers, aaron.ballman, lebedev.ri
Subscribers: lebedev.ri, nickdesaulniers, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D66186
llvm-svn: 369791
Diffstat (limited to 'clang/test/FixIt')
-rw-r--r-- | clang/test/FixIt/format.m | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/test/FixIt/format.m b/clang/test/FixIt/format.m index 40655a0e808..ef27b1bac35 100644 --- a/clang/test/FixIt/format.m +++ b/clang/test/FixIt/format.m @@ -205,9 +205,7 @@ void test_percent_C() { // CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:11-[[@LINE-1]]:13}:"%f" // CHECK-NOT: fix-it:"{{.*}}":{[[@LINE-2]]:16-[[@LINE-2]]:16}:"(unichar)" - NSLog(@"%C", (char)0x260300); // expected-warning{{format specifies type 'unichar' (aka 'unsigned short') but the argument has type 'char'}} - // CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:11-[[@LINE-1]]:13}:"%c" - // CHECK-NOT: fix-it:"{{.*}}":{[[@LINE-2]]:16-[[@LINE-2]]:22}:"(unichar)" + NSLog(@"%C", (char)0x260300); NSLog(@"%C", 'a'); // expected-warning{{format specifies type 'unichar' (aka 'unsigned short') but the argument has type 'char'}} // CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:11-[[@LINE-1]]:13}:"%c" |