Author: nico
Date: Fri Feb 3 17:36:13 2012
New Revision: 149721
URL: http://llvm.org/viewvc/llvm-project?rev=149721&view=rev
Log:
Try to get test passing on windows.
Idea by Jean-Daniel Dupas.
Modified:
cfe/trunk/test/SemaObjC/format-strings-objc.m
Modified: cfe/trunk/test/SemaObjC/format-strings-objc.m
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/format-strings-objc.m?rev=149721&r1=149720&r2=149721&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/format-strings-objc.m (original)
+++ cfe/trunk/test/SemaObjC/format-strings-objc.m Fri Feb 3 17:36:13 2012
@@ -116,8 +116,8 @@
[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
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits