2011-07-22 18:49:54 +08:00
|
|
|
// RUN: %clang_cc1 -ffreestanding -fsyntax-only -verify %s
|
2017-10-07 07:09:55 +08:00
|
|
|
// RUN: %clang_cc1 -ffreestanding -fsyntax-only -verify -fwchar-type=short -fno-signed-wchar %s
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2011-07-22 06:01:12 +08:00
|
|
|
|
2011-09-09 07:25:25 +08:00
|
|
|
#include <stdint.h>
|
2011-07-22 06:01:12 +08:00
|
|
|
|
|
|
|
const bool swchar = (wchar_t)-1 > (wchar_t)0;
|
|
|
|
|
|
|
|
int max_test[WCHAR_MAX == (swchar ? -(WCHAR_MIN+1) : (wchar_t)-1)];
|
|
|
|
int min_test[WCHAR_MIN == (swchar ? 0 : -WCHAR_MAX-1)];
|