]> granicus.if.org Git - clang/commitdiff
Disable one test case because of the inconsistent results it is giving on
authorTed Kremenek <kremenek@apple.com>
Wed, 24 Feb 2010 02:28:29 +0000 (02:28 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 24 Feb 2010 02:28:29 +0000 (02:28 +0000)
Windows and Mac OS X.  Will investigate later.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97016 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/format-strings.c

index 4cd4db26ebb964606b965d52c020c65f070b1b3f..e2686a885e0b8043ca8a41482805a4c4decc132a 100644 (file)
@@ -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 *'}}
 }