diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-06-17 01:12:20 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-06-17 01:12:20 +0000 |
commit | 01cb1aa458516b9061a65ea4b8a2ca55f71cb34f (patch) | |
tree | 26a12ddc9f1d2eb8c04d7bb5a90ed9f18085f8a1 /test/Sema/format-strings-fixit.c | |
parent | 252485e6bf88064e8cce5b47da2481e6c795c21d (diff) |
Fix format string checking of '%c' by treating it as an integer conversion. Fixes PR 7391.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106196 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/format-strings-fixit.c')
-rw-r--r-- | test/Sema/format-strings-fixit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Sema/format-strings-fixit.c b/test/Sema/format-strings-fixit.c index bbdd4d8105..84f69f059e 100644 --- a/test/Sema/format-strings-fixit.c +++ b/test/Sema/format-strings-fixit.c @@ -15,6 +15,8 @@ void test() { printf("abc%0f", "testing testing 123"); printf("%u", (long) -12); printf("%p", 123); + printf("%c\n", "x"); + printf("%c\n", 1.23); // Larger types printf("%+.2d", (unsigned long long) 123456); |