From 4c6d6dc793b95c1712333d8393c98ba15c7bdd97 Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Tue, 25 Sep 2012 10:11:17 +0000 Subject: [PATCH] Fix failing test/Sema/wchar.c on ARM. Currently Sema/wchar.c fails because WCHAR_T_TYPE is defined as int, however on ARM wchar_t is unsigned int. This patch changes that, so this test passes for ARM. Patch by Joey Gouly! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164598 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Sema/wchar.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/Sema/wchar.c b/test/Sema/wchar.c index 28ec2f14ce..8708aa0f65 100644 --- a/test/Sema/wchar.c +++ b/test/Sema/wchar.c @@ -6,6 +6,8 @@ typedef __WCHAR_TYPE__ wchar_t; #if defined(_WIN32) || defined(_M_IX86) || defined(__CYGWIN__) \ || defined(_M_X64) || defined(SHORT_WCHAR) #define WCHAR_T_TYPE unsigned short +#elif defined(__arm) + #define WCHAR_T_TYPE unsigned int #elif defined(__sun) || defined(__AuroraUX__) #define WCHAR_T_TYPE long #else /* Solaris or AuroraUX. */ -- 2.40.0