]> granicus.if.org Git - clang/commitdiff
Try to get test passing on windows.
authorNico Weber <nicolasweber@gmx.de>
Fri, 3 Feb 2012 23:36:13 +0000 (23:36 +0000)
committerNico Weber <nicolasweber@gmx.de>
Fri, 3 Feb 2012 23:36:13 +0000 (23:36 +0000)
Idea by Jean-Daniel Dupas.

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

test/SemaObjC/format-strings-objc.m

index dd9ff034835074e1332ccf7d4e1d9b627b201a69..34a18be15487cd8e5331fe073c8266f7b8803352 100644 (file)
@@ -116,8 +116,8 @@ void check_NSLocalizedString() {
   [Foo fooWithFormat:NSLocalizedString(@"format"), @"arg"]; // no-warning
 }
 
-typedef __WCHAR_TYPE__ wchar_t;
-
+// Not __WCHAR_TYPE__ because that's 2 byte on windows.
+typedef int wchar_t;
 
 // Test that %S, %C, %ls check for 16 bit types in ObjC strings, as described at
 // http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Strings/Articles/formatSpecifiers.html#//apple_ref/doc/uid/TP40004265