diff options
author | Nico Weber <nicolasweber@gmx.de> | 2012-02-04 01:50:30 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2012-02-04 01:50:30 +0000 |
commit | 1206f73e7ea5fcc03f648dfe732abc1be0b3aae4 (patch) | |
tree | 383ed77e35bfce2befdc7f06ec40e8790e64e7c8 | |
parent | b3ca2637a9a3aeac5c7103eb4d612528680e7e20 (diff) |
Revert r149721. chapuni tells me akyrtzi already fixed the test
by adding a triple, and the typedef makes things worse on windows.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149740 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/SemaObjC/format-strings-objc.m | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/SemaObjC/format-strings-objc.m b/test/SemaObjC/format-strings-objc.m index 34a18be154..a4d6eebbac 100644 --- a/test/SemaObjC/format-strings-objc.m +++ b/test/SemaObjC/format-strings-objc.m @@ -116,8 +116,7 @@ void check_NSLocalizedString() { [Foo fooWithFormat:NSLocalizedString(@"format"), @"arg"]; // no-warning } -// Not __WCHAR_TYPE__ because that's 2 byte on windows. -typedef int wchar_t; +typedef __WCHAR_TYPE__ 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 |