Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Headers / wchar_limits.cpp
blob7393e32745eeade4fc3b30885ab06e666ce8dd5c
1 // RUN: %clang_cc1 -ffreestanding -fsyntax-only -verify %s
2 // RUN: %clang_cc1 -ffreestanding -fsyntax-only -verify -fwchar-type=short -fno-signed-wchar %s
3 // expected-no-diagnostics
5 #include <stdint.h>
7 const bool swchar = (wchar_t)-1 > (wchar_t)0;
9 int max_test[WCHAR_MAX == (swchar ? -(WCHAR_MIN+1) : (wchar_t)-1)];
10 int min_test[WCHAR_MIN == (swchar ? 0 : -WCHAR_MAX-1)];