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