[cfe-commits] r97016 - /cfe/trunk/test/Sema/format-strings.c

Ted Kremenek kremenek at apple.com
Tue Feb 23 18:28:29 PST 2010


Author: kremenek
Date: Tue Feb 23 20:28:29 2010
New Revision: 97016

URL: http://llvm.org/viewvc/llvm-project?rev=97016&view=rev
Log:
Disable one test case because of the inconsistent results it is giving on
Windows and Mac OS X.  Will investigate later.

Modified:
    cfe/trunk/test/Sema/format-strings.c

Modified: cfe/trunk/test/Sema/format-strings.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/format-strings.c?rev=97016&r1=97015&r2=97016&view=diff
==============================================================================
--- cfe/trunk/test/Sema/format-strings.c (original)
+++ cfe/trunk/test/Sema/format-strings.c Tue Feb 23 20:28:29 2010
@@ -214,7 +214,9 @@
   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 *'}}
 }





More information about the cfe-commits mailing list