forked from OSchip/llvm-project
Add a missing test for the limits on wchar
llvm-svn: 135708
This commit is contained in:
parent
4145732818
commit
82bb089e87
|
@ -0,0 +1,15 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||||
// RUN: %clang_cc1 -fsyntax-only -verify -fshort-wchar %s
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
const bool swchar = (wchar_t)-1 > (wchar_t)0;
|
||||
|
||||
#ifdef __WCHAR_UNSIGNED__
|
||||
int signed_test[!swchar];
|
||||
#else
|
||||
int signed_test[swchar];
|
||||
#endif
|
||||
|
||||
int max_test[WCHAR_MAX == (swchar ? -(WCHAR_MIN+1) : (wchar_t)-1)];
|
||||
int min_test[WCHAR_MIN == (swchar ? 0 : -WCHAR_MAX-1)];
|
Loading…
Reference in New Issue