blob: 35ae7affb514defc622384d8a441a099ca2088d2 [file] [log] [blame]
Francois Pichet7f1e2a52011-07-22 10:49:54 +00001// RUN: %clang_cc1 -ffreestanding -fsyntax-only -verify %s
2// RUN: %clang_cc1 -ffreestanding -fsyntax-only -verify -fshort-wchar %s
Andy Gibbsc6e68da2012-10-19 12:44:48 +00003// expected-no-diagnostics
Alexis Hunt82bb0892011-07-21 22:01:12 +00004
Eric Christopherbd202c02011-09-08 23:25:25 +00005#include <stdint.h>
Alexis Hunt82bb0892011-07-21 22:01:12 +00006
7const bool swchar = (wchar_t)-1 > (wchar_t)0;
8
Alexis Hunt82bb0892011-07-21 22:01:12 +00009int max_test[WCHAR_MAX == (swchar ? -(WCHAR_MIN+1) : (wchar_t)-1)];
10int min_test[WCHAR_MIN == (swchar ? 0 : -WCHAR_MAX-1)];