summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/format-strings.c
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-02-24 02:28:29 +0000
committerTed Kremenek <kremenek@apple.com>2010-02-24 02:28:29 +0000
commit4e5f30cae5d708303bee7499885b8fe4ed3e83ae (patch)
tree327387aed979b26c0934f8f3b2a34a07190cb88c /clang/test/Sema/format-strings.c
parent29967969722ee3d425a5f5456d02cf98d03971a2 (diff)
downloadbcm5719-llvm-4e5f30cae5d708303bee7499885b8fe4ed3e83ae.tar.gz
bcm5719-llvm-4e5f30cae5d708303bee7499885b8fe4ed3e83ae.zip
Disable one test case because of the inconsistent results it is giving on
Windows and Mac OS X. Will investigate later. llvm-svn: 97016
Diffstat (limited to 'clang/test/Sema/format-strings.c')
-rw-r--r--clang/test/Sema/format-strings.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/Sema/format-strings.c b/clang/test/Sema/format-strings.c
index 4cd4db26ebb..e2686a885e0 100644
--- a/clang/test/Sema/format-strings.c
+++ b/clang/test/Sema/format-strings.c
@@ -214,7 +214,9 @@ void test_unicode_conversions(wchar_t *s) {
printf("%s", s); // expected-warning{{conversion specifies type 'char *' but the argument has type 'wchar_t *'}}
printf("%C", s[0]); // no-warning
printf("%c", s[0]);
- printf("%C", 10);
+ // 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 *'}}
}
OpenPOWER on IntegriCloud