]> granicus.if.org Git - clang/commitdiff
Add AArch64 wchar definition to test
authorTim Northover <Tim.Northover@arm.com>
Thu, 7 Feb 2013 15:11:44 +0000 (15:11 +0000)
committerTim Northover <Tim.Northover@arm.com>
Thu, 7 Feb 2013 15:11:44 +0000 (15:11 +0000)
This should allow it to pass if the default triple is AArch64

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

test/Sema/wchar.c

index 8708aa0f65c30daa45d3be6e488c09dbe130cff4..816245f3c041973be527b0c540e5418169650c52 100644 (file)
@@ -6,7 +6,7 @@ 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)
+#elif defined(__arm) || defined(__aarch64__)
   #define WCHAR_T_TYPE unsigned int
 #elif defined(__sun) || defined(__AuroraUX__)
   #define WCHAR_T_TYPE long