aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/format-strings.c
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-07-13 17:35:14 +0000
committerTed Kremenek <kremenek@apple.com>2011-07-13 17:35:14 +0000
commitdc00d8158db573f4a1f91cfaa2a89171c2e5f637 (patch)
tree68cff8fe823021b8a184177cf3d85e01d9856064 /test/Sema/format-strings.c
parent45eb7022ff059ff5a291e24f57ff56428a1e8210 (diff)
Re-relax conversion specifier checking for printf format strings and conversion specifiers. My recent change was a mistake.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135048 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/format-strings.c')
-rw-r--r--test/Sema/format-strings.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Sema/format-strings.c b/test/Sema/format-strings.c
index 83f96ff3a0..b47d3ca261 100644
--- a/test/Sema/format-strings.c
+++ b/test/Sema/format-strings.c
@@ -368,7 +368,7 @@ void check_char(unsigned char x, signed char y) {
printf("%c", y); // no-warning
printf("%hhu", x); // no-warning
printf("%hhi", y); // no-warning
- printf("%hhi", x); // expected-warning{{conversion specifies type 'signed char' but the argument has type 'unsigned char'}}
+ printf("%hhi", x); // no-warning
printf("%c", x); // no-warning
- printf("%hhu", y); // expected-warning{{conversion specifies type 'unsigned char' but the argument has type 'signed char'}}
+ printf("%hhu", y); // no-warning
}