[AIX] Define WCHAR_T_TYPE as unsigned short on AIX for wchar.c test case.
authorAmy Kwan <amy.kwan1@ibm.com>
Tue, 5 Oct 2021 22:21:27 +0000 (17:21 -0500)
committerAmy Kwan <amy.kwan1@ibm.com>
Wed, 6 Oct 2021 13:49:37 +0000 (08:49 -0500)
commit49dbde9c9e5149bcc8b906f7dbd040be76a2a267
tree4b015803d6da56fa50bdebaffe6368a35cf48465
parentb384736b205ecc96a906683076aa9f4b337e03b0
[AIX] Define WCHAR_T_TYPE as unsigned short on AIX for wchar.c test case.

The default wchar type is different on AIX vs. Linux. When this test is run on
AIX, WCHAR_T_TYPE ends up being set to int. This is incorrect as the default
wchar type on AIX is actually unsigned short, and setting the type incorrectly
causes the expected errors to not be found.

This patch sets the type correctly (to unsigned short) for AIX.

Differential Revision: https://reviews.llvm.org/D110428
clang/test/Sema/wchar.c