1 //===----------------------------------------------------------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is dual licensed under the MIT and the University of Illinois Open 6 // Source Licenses. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 // test climits 11 12 #include <climits> 13 14 #ifndef CHAR_BIT 15 #error CHAR_BIT not defined 16 #endif 17 18 #ifndef SCHAR_MIN 19 #error SCHAR_MIN not defined 20 #endif 21 22 #ifndef SCHAR_MAX 23 #error SCHAR_MAX not defined 24 #endif 25 26 #ifndef UCHAR_MAX 27 #error UCHAR_MAX not defined 28 #endif 29 30 #ifndef CHAR_MIN 31 #error CHAR_MIN not defined 32 #endif 33 34 #ifndef CHAR_MAX 35 #error CHAR_MAX not defined 36 #endif 37 38 #ifndef MB_LEN_MAX 39 #error MB_LEN_MAX not defined 40 #endif 41 42 #ifndef SHRT_MIN 43 #error SHRT_MIN not defined 44 #endif 45 46 #ifndef SHRT_MAX 47 #error SHRT_MAX not defined 48 #endif 49 50 #ifndef USHRT_MAX 51 #error USHRT_MAX not defined 52 #endif 53 54 #ifndef INT_MIN 55 #error INT_MIN not defined 56 #endif 57 58 #ifndef INT_MAX 59 #error INT_MAX not defined 60 #endif 61 62 #ifndef UINT_MAX 63 #error UINT_MAX not defined 64 #endif 65 66 #ifndef LONG_MIN 67 #error LONG_MIN not defined 68 #endif 69 70 #ifndef LONG_MAX 71 #error LONG_MAX not defined 72 #endif 73 74 #ifndef ULONG_MAX 75 #error ULONG_MAX not defined 76 #endif 77 78 #ifndef LLONG_MIN 79 #error LLONG_MIN not defined 80 #endif 81 82 #ifndef LLONG_MAX 83 #error LLONG_MAX not defined 84 #endif 85 86 #ifndef ULLONG_MAX 87 #error ULLONG_MAX not defined 88 #endif 89 main()90int main() 91 { 92 } 93