brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 14fb8b6 Raw
91 lines · cpp
1//===----------------------------------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9// test <limits.h>10//11// Even though <limits.h> is not provided by libc++, we still test that12// using it with libc++ on the search path will work.13 14#include <limits.h>15 16#ifndef CHAR_BIT17#error CHAR_BIT not defined18#endif19 20#ifndef SCHAR_MIN21#error SCHAR_MIN not defined22#endif23 24#ifndef SCHAR_MAX25#error SCHAR_MAX not defined26#endif27 28#ifndef UCHAR_MAX29#error UCHAR_MAX not defined30#endif31 32#ifndef CHAR_MIN33#error CHAR_MIN not defined34#endif35 36#ifndef CHAR_MAX37#error CHAR_MAX not defined38#endif39 40#ifndef MB_LEN_MAX41#error MB_LEN_MAX not defined42#endif43 44#ifndef SHRT_MIN45#error SHRT_MIN not defined46#endif47 48#ifndef SHRT_MAX49#error SHRT_MAX not defined50#endif51 52#ifndef USHRT_MAX53#error USHRT_MAX not defined54#endif55 56#ifndef INT_MIN57#error INT_MIN not defined58#endif59 60#ifndef INT_MAX61#error INT_MAX not defined62#endif63 64#ifndef UINT_MAX65#error UINT_MAX not defined66#endif67 68#ifndef LONG_MIN69#error LONG_MIN not defined70#endif71 72#ifndef LONG_MAX73#error LONG_MAX not defined74#endif75 76#ifndef ULONG_MAX77#error ULONG_MAX not defined78#endif79 80#ifndef LLONG_MIN81#error LLONG_MIN not defined82#endif83 84#ifndef LLONG_MAX85#error LLONG_MAX not defined86#endif87 88#ifndef ULLONG_MAX89#error ULLONG_MAX not defined90#endif91