[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Preprocessor / init-s390x.c
blob6c646527f50f742c9686ed4365e2828a1fb46607
1 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=s390x-none-none -fno-signed-char < /dev/null | FileCheck -match-full-lines -check-prefix S390X %s
2 // RUN: %clang_cc1 -x c++ -E -dM -ffreestanding -triple=s390x-none-none -fno-signed-char < /dev/null | FileCheck -match-full-lines -check-prefix S390X -check-prefix S390X-CXX %s
4 // S390X:#define __BIGGEST_ALIGNMENT__ 8
5 // S390X:#define __CHAR16_TYPE__ unsigned short
6 // S390X:#define __CHAR32_TYPE__ unsigned int
7 // S390X:#define __CHAR_BIT__ 8
8 // S390X:#define __CHAR_UNSIGNED__ 1
9 // S390X:#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
10 // S390X:#define __DBL_DIG__ 15
11 // S390X:#define __DBL_EPSILON__ 2.2204460492503131e-16
12 // S390X:#define __DBL_HAS_DENORM__ 1
13 // S390X:#define __DBL_HAS_INFINITY__ 1
14 // S390X:#define __DBL_HAS_QUIET_NAN__ 1
15 // S390X:#define __DBL_MANT_DIG__ 53
16 // S390X:#define __DBL_MAX_10_EXP__ 308
17 // S390X:#define __DBL_MAX_EXP__ 1024
18 // S390X:#define __DBL_MAX__ 1.7976931348623157e+308
19 // S390X:#define __DBL_MIN_10_EXP__ (-307)
20 // S390X:#define __DBL_MIN_EXP__ (-1021)
21 // S390X:#define __DBL_MIN__ 2.2250738585072014e-308
22 // S390X:#define __DECIMAL_DIG__ __LDBL_DECIMAL_DIG__
23 // S390X:#define __FLT_DENORM_MIN__ 1.40129846e-45F
24 // S390X:#define __FLT_DIG__ 6
25 // S390X:#define __FLT_EPSILON__ 1.19209290e-7F
26 // S390X:#define __FLT_HAS_DENORM__ 1
27 // S390X:#define __FLT_HAS_INFINITY__ 1
28 // S390X:#define __FLT_HAS_QUIET_NAN__ 1
29 // S390X:#define __FLT_MANT_DIG__ 24
30 // S390X:#define __FLT_MAX_10_EXP__ 38
31 // S390X:#define __FLT_MAX_EXP__ 128
32 // S390X:#define __FLT_MAX__ 3.40282347e+38F
33 // S390X:#define __FLT_MIN_10_EXP__ (-37)
34 // S390X:#define __FLT_MIN_EXP__ (-125)
35 // S390X:#define __FLT_MIN__ 1.17549435e-38F
36 // S390X:#define __FLT_RADIX__ 2
37 // S390X:#define __INT16_C_SUFFIX__
38 // S390X:#define __INT16_FMTd__ "hd"
39 // S390X:#define __INT16_FMTi__ "hi"
40 // S390X:#define __INT16_MAX__ 32767
41 // S390X:#define __INT16_TYPE__ short
42 // S390X:#define __INT32_C_SUFFIX__
43 // S390X:#define __INT32_FMTd__ "d"
44 // S390X:#define __INT32_FMTi__ "i"
45 // S390X:#define __INT32_MAX__ 2147483647
46 // S390X:#define __INT32_TYPE__ int
47 // S390X:#define __INT64_C_SUFFIX__ L
48 // S390X:#define __INT64_FMTd__ "ld"
49 // S390X:#define __INT64_FMTi__ "li"
50 // S390X:#define __INT64_MAX__ 9223372036854775807L
51 // S390X:#define __INT64_TYPE__ long int
52 // S390X:#define __INT8_C_SUFFIX__
53 // S390X:#define __INT8_FMTd__ "hhd"
54 // S390X:#define __INT8_FMTi__ "hhi"
55 // S390X:#define __INT8_MAX__ 127
56 // S390X:#define __INT8_TYPE__ signed char
57 // S390X:#define __INTMAX_C_SUFFIX__ L
58 // S390X:#define __INTMAX_FMTd__ "ld"
59 // S390X:#define __INTMAX_FMTi__ "li"
60 // S390X:#define __INTMAX_MAX__ 9223372036854775807L
61 // S390X:#define __INTMAX_TYPE__ long int
62 // S390X:#define __INTMAX_WIDTH__ 64
63 // S390X:#define __INTPTR_FMTd__ "ld"
64 // S390X:#define __INTPTR_FMTi__ "li"
65 // S390X:#define __INTPTR_MAX__ 9223372036854775807L
66 // S390X:#define __INTPTR_TYPE__ long int
67 // S390X:#define __INTPTR_WIDTH__ 64
68 // S390X:#define __INT_FAST16_FMTd__ "hd"
69 // S390X:#define __INT_FAST16_FMTi__ "hi"
70 // S390X:#define __INT_FAST16_MAX__ 32767
71 // S390X:#define __INT_FAST16_TYPE__ short
72 // S390X:#define __INT_FAST32_FMTd__ "d"
73 // S390X:#define __INT_FAST32_FMTi__ "i"
74 // S390X:#define __INT_FAST32_MAX__ 2147483647
75 // S390X:#define __INT_FAST32_TYPE__ int
76 // S390X:#define __INT_FAST64_FMTd__ "ld"
77 // S390X:#define __INT_FAST64_FMTi__ "li"
78 // S390X:#define __INT_FAST64_MAX__ 9223372036854775807L
79 // S390X:#define __INT_FAST64_TYPE__ long int
80 // S390X:#define __INT_FAST8_FMTd__ "hhd"
81 // S390X:#define __INT_FAST8_FMTi__ "hhi"
82 // S390X:#define __INT_FAST8_MAX__ 127
83 // S390X:#define __INT_FAST8_TYPE__ signed char
84 // S390X:#define __INT_LEAST16_FMTd__ "hd"
85 // S390X:#define __INT_LEAST16_FMTi__ "hi"
86 // S390X:#define __INT_LEAST16_MAX__ 32767
87 // S390X:#define __INT_LEAST16_TYPE__ short
88 // S390X:#define __INT_LEAST32_FMTd__ "d"
89 // S390X:#define __INT_LEAST32_FMTi__ "i"
90 // S390X:#define __INT_LEAST32_MAX__ 2147483647
91 // S390X:#define __INT_LEAST32_TYPE__ int
92 // S390X:#define __INT_LEAST64_FMTd__ "ld"
93 // S390X:#define __INT_LEAST64_FMTi__ "li"
94 // S390X:#define __INT_LEAST64_MAX__ 9223372036854775807L
95 // S390X:#define __INT_LEAST64_TYPE__ long int
96 // S390X:#define __INT_LEAST8_FMTd__ "hhd"
97 // S390X:#define __INT_LEAST8_FMTi__ "hhi"
98 // S390X:#define __INT_LEAST8_MAX__ 127
99 // S390X:#define __INT_LEAST8_TYPE__ signed char
100 // S390X:#define __INT_MAX__ 2147483647
101 // S390X:#define __LDBL_DENORM_MIN__ 6.47517511943802511092443895822764655e-4966L
102 // S390X:#define __LDBL_DIG__ 33
103 // S390X:#define __LDBL_EPSILON__ 1.92592994438723585305597794258492732e-34L
104 // S390X:#define __LDBL_HAS_DENORM__ 1
105 // S390X:#define __LDBL_HAS_INFINITY__ 1
106 // S390X:#define __LDBL_HAS_QUIET_NAN__ 1
107 // S390X:#define __LDBL_MANT_DIG__ 113
108 // S390X:#define __LDBL_MAX_10_EXP__ 4932
109 // S390X:#define __LDBL_MAX_EXP__ 16384
110 // S390X:#define __LDBL_MAX__ 1.18973149535723176508575932662800702e+4932L
111 // S390X:#define __LDBL_MIN_10_EXP__ (-4931)
112 // S390X:#define __LDBL_MIN_EXP__ (-16381)
113 // S390X:#define __LDBL_MIN__ 3.36210314311209350626267781732175260e-4932L
114 // S390X:#define __LONG_LONG_MAX__ 9223372036854775807LL
115 // S390X:#define __LONG_MAX__ 9223372036854775807L
116 // S390X:#define __NO_INLINE__ 1
117 // S390X:#define __POINTER_WIDTH__ 64
118 // S390X:#define __PTRDIFF_TYPE__ long int
119 // S390X:#define __PTRDIFF_WIDTH__ 64
120 // S390X:#define __SCHAR_MAX__ 127
121 // S390X:#define __SHRT_MAX__ 32767
122 // S390X:#define __SIG_ATOMIC_MAX__ 2147483647
123 // S390X:#define __SIG_ATOMIC_WIDTH__ 32
124 // S390X:#define __SIZEOF_DOUBLE__ 8
125 // S390X:#define __SIZEOF_FLOAT__ 4
126 // S390X:#define __SIZEOF_INT__ 4
127 // S390X:#define __SIZEOF_LONG_DOUBLE__ 16
128 // S390X:#define __SIZEOF_LONG_LONG__ 8
129 // S390X:#define __SIZEOF_LONG__ 8
130 // S390X:#define __SIZEOF_POINTER__ 8
131 // S390X:#define __SIZEOF_PTRDIFF_T__ 8
132 // S390X:#define __SIZEOF_SHORT__ 2
133 // S390X:#define __SIZEOF_SIZE_T__ 8
134 // S390X:#define __SIZEOF_WCHAR_T__ 4
135 // S390X:#define __SIZEOF_WINT_T__ 4
136 // S390X:#define __SIZE_TYPE__ long unsigned int
137 // S390X:#define __SIZE_WIDTH__ 64
138 // S390X-CXX:#define __STDCPP_DEFAULT_NEW_ALIGNMENT__ 8UL
139 // S390X:#define __UINT16_C_SUFFIX__
140 // S390X:#define __UINT16_MAX__ 65535
141 // S390X:#define __UINT16_TYPE__ unsigned short
142 // S390X:#define __UINT32_C_SUFFIX__ U
143 // S390X:#define __UINT32_MAX__ 4294967295U
144 // S390X:#define __UINT32_TYPE__ unsigned int
145 // S390X:#define __UINT64_C_SUFFIX__ UL
146 // S390X:#define __UINT64_MAX__ 18446744073709551615UL
147 // S390X:#define __UINT64_TYPE__ long unsigned int
148 // S390X:#define __UINT8_C_SUFFIX__
149 // S390X:#define __UINT8_MAX__ 255
150 // S390X:#define __UINT8_TYPE__ unsigned char
151 // S390X:#define __UINTMAX_C_SUFFIX__ UL
152 // S390X:#define __UINTMAX_MAX__ 18446744073709551615UL
153 // S390X:#define __UINTMAX_TYPE__ long unsigned int
154 // S390X:#define __UINTMAX_WIDTH__ 64
155 // S390X:#define __UINTPTR_MAX__ 18446744073709551615UL
156 // S390X:#define __UINTPTR_TYPE__ long unsigned int
157 // S390X:#define __UINTPTR_WIDTH__ 64
158 // S390X:#define __UINT_FAST16_MAX__ 65535
159 // S390X:#define __UINT_FAST16_TYPE__ unsigned short
160 // S390X:#define __UINT_FAST32_MAX__ 4294967295U
161 // S390X:#define __UINT_FAST32_TYPE__ unsigned int
162 // S390X:#define __UINT_FAST64_MAX__ 18446744073709551615UL
163 // S390X:#define __UINT_FAST64_TYPE__ long unsigned int
164 // S390X:#define __UINT_FAST8_MAX__ 255
165 // S390X:#define __UINT_FAST8_TYPE__ unsigned char
166 // S390X:#define __UINT_LEAST16_MAX__ 65535
167 // S390X:#define __UINT_LEAST16_TYPE__ unsigned short
168 // S390X:#define __UINT_LEAST32_MAX__ 4294967295U
169 // S390X:#define __UINT_LEAST32_TYPE__ unsigned int
170 // S390X:#define __UINT_LEAST64_MAX__ 18446744073709551615UL
171 // S390X:#define __UINT_LEAST64_TYPE__ long unsigned int
172 // S390X:#define __UINT_LEAST8_MAX__ 255
173 // S390X:#define __UINT_LEAST8_TYPE__ unsigned char
174 // S390X:#define __USER_LABEL_PREFIX__
175 // S390X:#define __WCHAR_MAX__ 2147483647
176 // S390X:#define __WCHAR_TYPE__ int
177 // S390X:#define __WCHAR_WIDTH__ 32
178 // S390X:#define __WINT_TYPE__ int
179 // S390X:#define __WINT_WIDTH__ 32
180 // S390X:#define __s390__ 1
181 // S390X:#define __s390x__ 1
183 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=s390x-none-zos -fno-signed-char < /dev/null | FileCheck -match-full-lines -check-prefix S390X-ZOS %s
184 // RUN: %clang_cc1 -x c++ -std=gnu++14 -E -dM -ffreestanding -triple=s390x-none-zos -fno-signed-char < /dev/null | FileCheck -match-full-lines -check-prefix S390X-ZOS -check-prefix S390X-ZOS-GNUXX %s
186 // S390X-ZOS-GNUXX: #define _EXT 1
187 // S390X-ZOS: #define _LONG_LONG 1
188 // S390X-ZOS-GNUXX: #define _MI_BUILTIN 1
189 // S390X-ZOS: #define _OPEN_DEFAULT 1
190 // S390X-ZOS: #define _UNIX03_WITHDRAWN 1
191 // S390X-ZOS-GNUXX: #define _XOPEN_SOURCE 600
192 // S390X-ZOS: #define __370__ 1
193 // S390X-ZOS: #define __64BIT__ 1
194 // S390X-ZOS: #define __BFP__ 1
195 // S390X-ZOS: #define __BOOL__ 1
196 // S390X-ZOS-GNUXX: #define __DLL__ 1
197 // S390X-ZOS: #define __LONGNAME__ 1
198 // S390X-ZOS: #define __MVS__ 1
199 // S390X-ZOS: #define __THW_370__ 1
200 // S390X-ZOS: #define __THW_BIG_ENDIAN__ 1
201 // S390X-ZOS: #define __TOS_390__ 1
202 // S390X-ZOS: #define __TOS_MVS__ 1
203 // S390X-ZOS: #define __XPLINK__ 1
204 // S390X-ZOS-GNUXX: #define __wchar_t 1