[PATCH] D110428: [AIX] Define WCHAR_T_TYPE as unsigned short on AIX for wchar.c test case.
David Tenty via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 1 11:14:15 PDT 2021
daltenty added a comment.
This doesn't appear to be true for 64-bit AIX:
extern "C" int printf(const char *, ...);
int main() {
printf("wchar_t: %ld\nunsigned short: %ld\n",sizeof(wchar_t),sizeof(unsigned short));
return 0;
}
$ clang++ -m64 foo.cc
$ ./a.out
wchar_t: 4
unsigned short: 2
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110428/new/
https://reviews.llvm.org/D110428
More information about the cfe-commits
mailing list