aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/format-strings-0x.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-01-20 21:52:58 +0000
committerTed Kremenek <kremenek@apple.com>2012-01-20 21:52:58 +0000
commitce506ae231703a23ea95335cd4de19c60082f361 (patch)
tree4f354d3fe0d049a3d9948bc0774814e0d8b5f03c /test/SemaCXX/format-strings-0x.cpp
parent3026348bd4c13a0f83b59839f64065e0fcbea253 (diff)
Tighten format string diagnostic and make it a bit clearer (and a bit closer to GCC's).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148579 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/format-strings-0x.cpp')
-rw-r--r--test/SemaCXX/format-strings-0x.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaCXX/format-strings-0x.cpp b/test/SemaCXX/format-strings-0x.cpp
index 61bdbe188d..9359c7b1f9 100644
--- a/test/SemaCXX/format-strings-0x.cpp
+++ b/test/SemaCXX/format-strings-0x.cpp
@@ -6,7 +6,7 @@ extern int printf(const char *restrict, ...);
}
void f(char **sp, float *fp) {
- scanf("%as", sp); // expected-warning{{conversion specifies type 'float *' but the argument has type 'char **'}}
+ scanf("%as", sp); // expected-warning{{format specifies type 'float *' but the argument has type 'char **'}}
printf("%a", 1.0);
scanf("%afoobar", fp);