diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2017-07-15 06:14:47 +0000 |
|---|---|---|
| committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2017-07-15 06:14:47 +0000 |
| commit | 478b7051f9efce2735ad48cbb26a24c7348f7611 (patch) | |
| tree | 3248e4611d1e663765f27a99f2bd6dadeef0dd7b /clang | |
| parent | fbfae984b425782507f373982ed7bc5b6b0c9a05 (diff) | |
| download | bcm5719-llvm-478b7051f9efce2735ad48cbb26a24c7348f7611.tar.gz bcm5719-llvm-478b7051f9efce2735ad48cbb26a24c7348f7611.zip | |
clang/test/FixIt/format.m: Tweak for i686, where ssize_t is int. (r308067)
llvm-svn: 308084
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/test/FixIt/format.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/FixIt/format.m b/clang/test/FixIt/format.m index 5806f22c0a7..c3cf2b1f3c5 100644 --- a/clang/test/FixIt/format.m +++ b/clang/test/FixIt/format.m @@ -236,8 +236,8 @@ void testSizeTypes() { printf("%zd", 0.f); // expected-warning-re{{format specifies type 'ssize_t' (aka '{{.+}}') but the argument has type 'float'}} // CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:11-[[@LINE-1]]:14}:"%f" - int x; - printf("%zn", &x); // expected-warning-re{{format specifies type 'ssize_t *' (aka '{{.+}}') but the argument has type 'int *'}} + short x; + printf("%zn", &x); // expected-warning-re{{format specifies type 'ssize_t *' (aka '{{.+}}') but the argument has type 'short *'}} // PrintfSpecifier::fixType doesn't handle %n, so a fix-it is not emitted, // see the comment in PrintfSpecifier::fixType in PrintfFormatString.cpp. } |

