summaryrefslogtreecommitdiff
path: root/clang/test/Headers/wchar_limits.cpp
blob: 93a99ad78f2bca6b548c7fe34f122348d53c0279 (about) (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_cc1 -ffreestanding -fsyntax-only -verify %s
// RUN: %clang_cc1 -ffreestanding -fsyntax-only -verify -fshort-wchar %s

#include <stdint.h>

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)];