diff options
author | Nico Weber <nicolasweber@gmx.de> | 2012-02-03 23:36:13 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2012-02-03 23:36:13 +0000 |
commit | 798d14fd2d7b73957afa083972d97cc216a7b056 (patch) | |
tree | f7452866760dfffd39eaeaf5956f8de54a2195ec /test/SemaObjC/format-strings-objc.m | |
parent | cefc7b20fdb97b989163199e0849b4325e9b7804 (diff) |
Try to get test passing on windows.
Idea by Jean-Daniel Dupas.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149721 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaObjC/format-strings-objc.m')
-rw-r--r-- | test/SemaObjC/format-strings-objc.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaObjC/format-strings-objc.m b/test/SemaObjC/format-strings-objc.m index dd9ff03483..34a18be154 100644 --- a/test/SemaObjC/format-strings-objc.m +++ b/test/SemaObjC/format-strings-objc.m @@ -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 |