diff options
author | Hans Wennborg <hans@hanshq.net> | 2011-10-18 09:30:37 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2011-10-18 09:30:37 +0000 |
commit | 36e76089b30180ba86598be95bbb0989657fe2fc (patch) | |
tree | 4d60d290c491eeabe143156b5065f51a2d5be87b /test/Sema/format-strings-fixit.c | |
parent | 4886e32e1f0bc778a47d23ac88a9c72f2c6305b0 (diff) |
Another attempt at fixing format-strings-fixit.c.
Use "%f" as format string to make sure it doesn't match size_t, etc.
whatever they might be typedeffed to, so that the fixit always applies.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142348 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/format-strings-fixit.c')
-rw-r--r-- | test/Sema/format-strings-fixit.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/Sema/format-strings-fixit.c b/test/Sema/format-strings-fixit.c index 590b2f32f5..ca9d934002 100644 --- a/test/Sema/format-strings-fixit.c +++ b/test/Sema/format-strings-fixit.c @@ -54,11 +54,11 @@ void test() { typedef __PTRDIFF_TYPE__ ptrdiff_t; // size_t, etc. - printf("%c", (size_t) 42); - //printf("%c", (ssize_t) 42); - printf("%c", (intmax_t) 42); - printf("%c", (uintmax_t) 42); - printf("%c", (ptrdiff_t) 42); + printf("%f", (size_t) 42); + //printf("%f", (ssize_t) 42); + printf("%f", (intmax_t) 42); + printf("%f", (uintmax_t) 42); + printf("%f", (ptrdiff_t) 42); } // Validate the fixes... |