diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-07-19 19:47:40 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-07-19 19:47:40 +0000 |
commit | be86ecc82772546d9e404a32002e446ac0c725d9 (patch) | |
tree | 9563e0469fac27a6ffebb6e6ee7451e8c5169ad5 /test/Sema/format-strings-scanf.c | |
parent | 5314e448631f166c89e908cc1ab45dc7eda916ba (diff) |
Add missing conversion specifier parsing for 'u', 'x', 'o', and 's'. Fixes <rdar://problem/8204052>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108742 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/format-strings-scanf.c')
-rw-r--r-- | test/Sema/format-strings-scanf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Sema/format-strings-scanf.c b/test/Sema/format-strings-scanf.c index 5341ad5ee9..ac53d66bf6 100644 --- a/test/Sema/format-strings-scanf.c +++ b/test/Sema/format-strings-scanf.c @@ -12,4 +12,7 @@ void test(const char *s, int *i) { scanf("%0d", i); // expected-warning{{zero field width in scanf format string is unused}} scanf("%00d", i); // expected-warning{{zero field width in scanf format string is unused}} scanf("%d%[asdfasdfd", i, s); // expected-warning{{no closing ']' for '%[' in scanf format string}} + + unsigned short s_x; + scanf ("%" "hu" "\n", &s_x); // no-warning } |