blob: c5405f7e8710716932ab1a196a7cf6a83dc261e4 [file] [log] [blame]
Howard Hinnant3e519522010-05-11 19:42:16 +00001//===----------------------------------------------------------------------===//
2//
Howard Hinnant5b08a8a2010-05-11 21:36:01 +00003// The LLVM Compiler Infrastructure
Howard Hinnant3e519522010-05-11 19:42:16 +00004//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
Howard Hinnant5cf4e1f2010-08-22 00:20:12 +00009
Howard Hinnant3e519522010-05-11 19:42:16 +000010 // test limits.h
11
12#include <limits.h>
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
90int main()
91{
92}