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-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 // test climits 10 11 #include <climits> 12 13 #include "test_macros.h" 14 15 #ifndef CHAR_BIT 16 #error CHAR_BIT not defined 17 #endif 18 19 #ifndef SCHAR_MIN 20 #error SCHAR_MIN not defined 21 #endif 22 23 #ifndef SCHAR_MAX 24 #error SCHAR_MAX not defined 25 #endif 26 27 #ifndef UCHAR_MAX 28 #error UCHAR_MAX not defined 29 #endif 30 31 #ifndef CHAR_MIN 32 #error CHAR_MIN not defined 33 #endif 34 35 #ifndef CHAR_MAX 36 #error CHAR_MAX not defined 37 #endif 38 39 #ifndef MB_LEN_MAX 40 #error MB_LEN_MAX not defined 41 #endif 42 43 #ifndef SHRT_MIN 44 #error SHRT_MIN not defined 45 #endif 46 47 #ifndef SHRT_MAX 48 #error SHRT_MAX not defined 49 #endif 50 51 #ifndef USHRT_MAX 52 #error USHRT_MAX not defined 53 #endif 54 55 #ifndef INT_MIN 56 #error INT_MIN not defined 57 #endif 58 59 #ifndef INT_MAX 60 #error INT_MAX not defined 61 #endif 62 63 #ifndef UINT_MAX 64 #error UINT_MAX not defined 65 #endif 66 67 #ifndef LONG_MIN 68 #error LONG_MIN not defined 69 #endif 70 71 #ifndef LONG_MAX 72 #error LONG_MAX not defined 73 #endif 74 75 #ifndef ULONG_MAX 76 #error ULONG_MAX not defined 77 #endif 78 79 #ifndef LLONG_MIN 80 #error LLONG_MIN not defined 81 #endif 82 83 #ifndef LLONG_MAX 84 #error LLONG_MAX not defined 85 #endif 86 87 #ifndef ULLONG_MAX 88 #error ULLONG_MAX not defined 89 #endif 90 main(int,char **)91int main(int, char**) 92 { 93 94 return 0; 95 } 96