aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/format-strings.c
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2012-02-22 10:17:01 +0000
committerHans Wennborg <hans@hanshq.net>2012-02-22 10:17:01 +0000
commit76517426dc8bf7734c07eefc35171a6bfdba1a2b (patch)
treec7d54d3b390503dc30c37057385243abccec3592 /test/Sema/format-strings.c
parent341785ec52f87c0803ba52dc88faac4e136f8593 (diff)
Warn about non-standard format strings (pr12017)
This adds the -Wformat-non-standard flag (off by default, enabled by -pedantic), which warns about non-standard things in format strings (such as the 'q' length modifier, the 'S' conversion specifier, etc.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151154 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/format-strings.c')
-rw-r--r--test/Sema/format-strings.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/Sema/format-strings.c b/test/Sema/format-strings.c
index 55b8201fd3..086c5c6d6f 100644
--- a/test/Sema/format-strings.c
+++ b/test/Sema/format-strings.c
@@ -268,7 +268,6 @@ void test_unicode_conversions(wchar_t *s) {
// FIXME: This test reports inconsistent results. On Windows, '%C' expects
// 'unsigned short'.
// printf("%C", 10);
- // FIXME: we report the expected type as 'int*' instead of 'wchar_t*'
printf("%S", "hello"); // expected-warning{{but the argument has type 'char *'}}
}