blob: bd0c7b9e0f5354aefb68e0233c85477cc04f0762 [file] [log] [blame]
Howard Hinnant3e519522010-05-11 19:42:16 +00001//===----------------------------------------------------------------------===//
2//
Chandler Carruth57b08b02019-01-19 10:56:40 +00003// 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
Howard Hinnant3e519522010-05-11 19:42:16 +00006//
7//===----------------------------------------------------------------------===//
Howard Hinnant5cf4e1f2010-08-22 00:20:12 +00008
Howard Hinnant3e519522010-05-11 19:42:16 +00009 // test limits.h
10
11#include <limits.h>
12
Marshall Clow7fc6a552019-05-31 18:35:30 +000013#include "test_macros.h"
14
Howard Hinnant3e519522010-05-11 19:42:16 +000015#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
JF Bastien2df59c52019-02-04 20:31:13 +000091int main(int, char**)
Howard Hinnant3e519522010-05-11 19:42:16 +000092{
JF Bastien2df59c52019-02-04 20:31:13 +000093
94 return 0;
Howard Hinnant3e519522010-05-11 19:42:16 +000095}