3 // Verify that __has_builtin gives the correct answer for C++ built-ins.
5 #if !__has_builtin (__add_lvalue_reference)
6 # error "__has_builtin (__add_lvalue_reference) failed"
8 #if !__has_builtin (__add_pointer)
9 # error "__has_builtin (__add_pointer) failed"
11 #if !__has_builtin (__add_rvalue_reference)
12 # error "__has_builtin (__add_rvalue_reference) failed"
14 #if !__has_builtin (__array_rank)
15 # error "__has_builtin (__array_rank) failed"
17 #if !__has_builtin (__builtin_addressof)
18 # error "__has_builtin (__builtin_addressof) failed"
20 #if !__has_builtin (__builtin_bit_cast)
21 # error "__has_builtin (__builtin_bit_cast) failed"
23 #if !__has_builtin (__builtin_is_constant_evaluated)
24 # error "__has_builtin (__builtin_is_constant_evaluated) failed"
26 #if !__has_builtin (__builtin_is_corresponding_member)
27 # error "__has_builtin (__builtin_is_corresponding_member) failed"
29 #if !__has_builtin (__builtin_is_pointer_interconvertible_with_class)
30 # error "__has_builtin (__builtin_is_pointer_interconvertible_with_class) failed"
32 #if !__has_builtin (__builtin_launder)
33 # error "__has_builtin (__builtin_launder) failed"
35 #if !__has_builtin (__builtin_source_location)
36 # error "__has_builtin (__builtin_source_location) failed"
38 #if !__has_builtin (__decay)
39 # error "__has_builtin (__decay) failed"
41 #if !__has_builtin (__has_nothrow_assign)
42 # error "__has_builtin (__has_nothrow_assign) failed"
44 #if !__has_builtin (__has_nothrow_constructor)
45 # error "__has_builtin (__has_nothrow_constructor) failed"
47 #if !__has_builtin (__has_nothrow_copy)
48 # error "__has_builtin (__has_nothrow_copy) failed"
50 #if !__has_builtin (__has_trivial_assign)
51 # error "__has_builtin (__has_trivial_assign) failed"
53 #if !__has_builtin (__has_trivial_constructor)
54 # error "__has_builtin (__has_trivial_constructor) failed"
56 #if !__has_builtin (__has_trivial_copy)
57 # error "__has_builtin (__has_trivial_copy) failed"
59 #if !__has_builtin (__has_trivial_destructor)
60 # error "__has_builtin (__has_trivial_destructor) failed"
62 #if !__has_builtin (__has_unique_object_representations)
63 # error "__has_builtin (__has_unique_object_representations) failed"
65 #if !__has_builtin (__has_virtual_destructor)
66 # error "__has_builtin (__has_virtual_destructor) failed"
68 #if !__has_builtin (__is_abstract)
69 # error "__has_builtin (__is_abstract) failed"
71 #if !__has_builtin (__is_aggregate)
72 # error "__has_builtin (__is_aggregate) failed"
74 #if !__has_builtin (__is_array)
75 # error "__has_builtin (__is_array) failed"
77 #if !__has_builtin (__is_assignable)
78 # error "__has_builtin (__is_assignable) failed"
80 #if !__has_builtin (__is_base_of)
81 # error "__has_builtin (__is_base_of) failed"
83 #if !__has_builtin (__is_bounded_array)
84 # error "__has_builtin (__is_bounded_array) failed"
86 #if !__has_builtin (__is_class)
87 # error "__has_builtin (__is_class) failed"
89 #if !__has_builtin (__is_const)
90 # error "__has_builtin (__is_const) failed"
92 #if !__has_builtin (__is_constructible)
93 # error "__has_builtin (__is_constructible) failed"
95 #if !__has_builtin (__is_convertible)
96 # error "__has_builtin (__is_convertible) failed"
98 #if !__has_builtin (__is_empty)
99 # error "__has_builtin (__is_empty) failed"
101 #if !__has_builtin (__is_enum)
102 # error "__has_builtin (__is_enum) failed"
104 #if !__has_builtin (__is_final)
105 # error "__has_builtin (__is_final) failed"
107 #if !__has_builtin (__is_function)
108 # error "__has_builtin (__is_function) failed"
110 #if !__has_builtin (__is_invocable)
111 # error "__has_builtin (__is_invocable) failed"
113 #if !__has_builtin (__is_layout_compatible)
114 # error "__has_builtin (__is_layout_compatible) failed"
116 #if !__has_builtin (__is_literal_type)
117 # error "__has_builtin (__is_literal_type) failed"
119 #if !__has_builtin (__is_member_function_pointer)
120 # error "__has_builtin (__is_member_function_pointer) failed"
122 #if !__has_builtin (__is_member_object_pointer)
123 # error "__has_builtin (__is_member_object_pointer) failed"
125 #if !__has_builtin (__is_member_pointer)
126 # error "__has_builtin (__is_member_pointer) failed"
128 #if !__has_builtin (__is_nothrow_assignable)
129 # error "__has_builtin (__is_nothrow_assignable) failed"
131 #if !__has_builtin (__is_nothrow_constructible)
132 # error "__has_builtin (__is_nothrow_constructible) failed"
134 #if !__has_builtin (__is_nothrow_convertible)
135 # error "__has_builtin (__is_nothrow_convertible) failed"
137 #if !__has_builtin (__is_nothrow_invocable)
138 # error "__has_builtin (__is_nothrow_invocable) failed"
140 #if !__has_builtin (__is_object)
141 # error "__has_builtin (__is_object) failed"
143 #if !__has_builtin (__is_pod)
144 # error "__has_builtin (__is_pod) failed"
146 #if !__has_builtin (__is_pointer)
147 # error "__has_builtin (__is_pointer) failed"
149 #if !__has_builtin (__is_pointer_interconvertible_base_of)
150 # error "__has_builtin (__is_pointer_interconvertible_base_of) failed"
152 #if !__has_builtin (__is_polymorphic)
153 # error "__has_builtin (__is_polymorphic) failed"
155 #if !__has_builtin (__is_reference)
156 # error "__has_builtin (__is_reference) failed"
158 #if !__has_builtin (__is_same)
159 # error "__has_builtin (__is_same) failed"
161 #if !__has_builtin (__is_same_as)
162 # error "__has_builtin (__is_same_as) failed"
164 #if !__has_builtin (__is_scoped_enum)
165 # error "__has_builtin (__is_scoped_enum) failed"
167 #if !__has_builtin (__is_standard_layout)
168 # error "__has_builtin (__is_standard_layout) failed"
170 #if !__has_builtin (__is_trivial)
171 # error "__has_builtin (__is_trivial) failed"
173 #if !__has_builtin (__is_trivially_assignable)
174 # error "__has_builtin (__is_trivially_assignable) failed"
176 #if !__has_builtin (__is_trivially_constructible)
177 # error "__has_builtin (__is_trivially_constructible) failed"
179 #if !__has_builtin (__is_trivially_copyable)
180 # error "__has_builtin (__is_trivially_copyable) failed"
182 #if !__has_builtin (__is_unbounded_array)
183 # error "__has_builtin (__is_unbounded_array) failed"
185 #if !__has_builtin (__is_union)
186 # error "__has_builtin (__is_union) failed"
188 #if !__has_builtin (__is_volatile)
189 # error "__has_builtin (__is_volatile) failed"
191 #if !__has_builtin (__reference_constructs_from_temporary)
192 # error "__has_builtin (__reference_constructs_from_temporary) failed"
194 #if !__has_builtin (__reference_converts_from_temporary)
195 # error "__has_builtin (__reference_converts_from_temporary) failed"
197 #if !__has_builtin (__remove_all_extents)
198 # error "__has_builtin (__remove_all_extents) failed"
200 #if !__has_builtin (__remove_cv)
201 # error "__has_builtin (__remove_cv) failed"
203 #if !__has_builtin (__remove_cvref)
204 # error "__has_builtin (__remove_cvref) failed"
206 #if !__has_builtin (__remove_extent)
207 # error "__has_builtin (__remove_extent) failed"
209 #if !__has_builtin (__remove_pointer)
210 # error "__has_builtin (__remove_pointer) failed"
212 #if !__has_builtin (__remove_reference)
213 # error "__has_builtin (__remove_reference) failed"
215 #if !__has_builtin (__underlying_type)
216 # error "__has_builtin (__underlying_type) failed"