Lines Matching refs:AlignOf
10 #include "llvm/Support/AlignOf.h"
92 [AlignOf<char>::Alignment > 0]
93 [AlignOf<short>::Alignment > 0]
94 [AlignOf<int>::Alignment > 0]
95 [AlignOf<long>::Alignment > 0]
96 [AlignOf<long long>::Alignment > 0]
97 [AlignOf<float>::Alignment > 0]
98 [AlignOf<double>::Alignment > 0]
99 [AlignOf<long double>::Alignment > 0]
100 [AlignOf<void *>::Alignment > 0]
101 [AlignOf<int *>::Alignment > 0]
102 [AlignOf<double (*)(double)>::Alignment > 0]
103 [AlignOf<double (S6::*)()>::Alignment > 0];
105 [AlignOf<A1>::Alignment > 0]
106 [AlignOf<A2>::Alignment > 0]
107 [AlignOf<A4>::Alignment > 0]
108 [AlignOf<A8>::Alignment > 0];
110 [AlignOf<S1>::Alignment > 0]
111 [AlignOf<S2>::Alignment > 0]
112 [AlignOf<S3>::Alignment > 0]
113 [AlignOf<S4>::Alignment > 0]
114 [AlignOf<S5>::Alignment > 0]
115 [AlignOf<S6>::Alignment > 0];
117 [AlignOf<D1>::Alignment > 0]
118 [AlignOf<D2>::Alignment > 0]
119 [AlignOf<D3>::Alignment > 0]
120 [AlignOf<D4>::Alignment > 0]
121 [AlignOf<D5>::Alignment > 0]
122 [AlignOf<D6>::Alignment > 0]
123 [AlignOf<D7>::Alignment > 0]
124 [AlignOf<D8>::Alignment > 0]
125 [AlignOf<D9>::Alignment > 0];
127 [AlignOf<V1>::Alignment > 0]
128 [AlignOf<V2>::Alignment > 0]
129 [AlignOf<V3>::Alignment > 0]
130 [AlignOf<V4>::Alignment > 0]
131 [AlignOf<V5>::Alignment > 0]
132 [AlignOf<V6>::Alignment > 0]
133 [AlignOf<V7>::Alignment > 0]
134 [AlignOf<V8>::Alignment > 0];
137 EXPECT_LE(1u, alignOf<A1>());
138 EXPECT_LE(2u, alignOf<A2>());
139 EXPECT_LE(4u, alignOf<A4>());
140 EXPECT_LE(8u, alignOf<A8>());
142 EXPECT_EQ(1u, alignOf<char>());
143 EXPECT_LE(alignOf<char>(), alignOf<short>());
144 EXPECT_LE(alignOf<short>(), alignOf<int>());
145 EXPECT_LE(alignOf<int>(), alignOf<long>());
146 EXPECT_LE(alignOf<long>(), alignOf<long long>());
147 EXPECT_LE(alignOf<char>(), alignOf<float>());
148 EXPECT_LE(alignOf<float>(), alignOf<double>());
149 EXPECT_LE(alignOf<char>(), alignOf<long double>());
150 EXPECT_LE(alignOf<char>(), alignOf<void *>());
151 EXPECT_EQ(alignOf<void *>(), alignOf<int *>());
152 EXPECT_LE(alignOf<char>(), alignOf<S1>());
153 EXPECT_LE(alignOf<S1>(), alignOf<S2>());
154 EXPECT_LE(alignOf<S1>(), alignOf<S3>());
155 EXPECT_LE(alignOf<S1>(), alignOf<S4>());
156 EXPECT_LE(alignOf<S1>(), alignOf<S5>());
157 EXPECT_LE(alignOf<S1>(), alignOf<S6>());
158 EXPECT_LE(alignOf<S1>(), alignOf<D1>());
159 EXPECT_LE(alignOf<S1>(), alignOf<D2>());
160 EXPECT_LE(alignOf<S1>(), alignOf<D3>());
161 EXPECT_LE(alignOf<S1>(), alignOf<D4>());
162 EXPECT_LE(alignOf<S1>(), alignOf<D5>());
163 EXPECT_LE(alignOf<S1>(), alignOf<D6>());
164 EXPECT_LE(alignOf<S1>(), alignOf<D7>());
165 EXPECT_LE(alignOf<S1>(), alignOf<D8>());
166 EXPECT_LE(alignOf<S1>(), alignOf<D9>());
167 EXPECT_LE(alignOf<S1>(), alignOf<V1>());
168 EXPECT_LE(alignOf<V1>(), alignOf<V2>());
169 EXPECT_LE(alignOf<V1>(), alignOf<V3>());
170 EXPECT_LE(alignOf<V1>(), alignOf<V4>());
171 EXPECT_LE(alignOf<V1>(), alignOf<V5>());
172 EXPECT_LE(alignOf<V1>(), alignOf<V6>());
173 EXPECT_LE(alignOf<V1>(), alignOf<V7>());
174 EXPECT_LE(alignOf<V1>(), alignOf<V8>());
178 EXPECT_LE(1u, alignOf<AlignedCharArrayUnion<A1> >());
179 EXPECT_LE(2u, alignOf<AlignedCharArrayUnion<A2> >());
180 EXPECT_LE(4u, alignOf<AlignedCharArrayUnion<A4> >());
181 EXPECT_LE(8u, alignOf<AlignedCharArrayUnion<A8> >());
188 EXPECT_EQ(1u, (alignOf<AlignedCharArrayUnion<A1> >()));
189 EXPECT_EQ(2u, (alignOf<AlignedCharArrayUnion<A1, A2> >()));
190 EXPECT_EQ(4u, (alignOf<AlignedCharArrayUnion<A1, A2, A4> >()));
191 EXPECT_EQ(8u, (alignOf<AlignedCharArrayUnion<A1, A2, A4, A8> >()));
198 EXPECT_EQ(1u, (alignOf<AlignedCharArrayUnion<A1[1]> >()));
199 EXPECT_EQ(2u, (alignOf<AlignedCharArrayUnion<A1[2], A2[1]> >()));
200 EXPECT_EQ(4u, (alignOf<AlignedCharArrayUnion<A1[42], A2[55],
202 EXPECT_EQ(8u, (alignOf<AlignedCharArrayUnion<A1[2], A2[1],
214 EXPECT_EQ(alignOf<char>(), alignOf<AlignedCharArrayUnion<char> >());
215 EXPECT_EQ(alignOf<short>(), alignOf<AlignedCharArrayUnion<short> >());
216 EXPECT_EQ(alignOf<int>(), alignOf<AlignedCharArrayUnion<int> >());
217 EXPECT_EQ(alignOf<long>(), alignOf<AlignedCharArrayUnion<long> >());
218 EXPECT_EQ(alignOf<long long>(),
219 alignOf<AlignedCharArrayUnion<long long> >());
220 EXPECT_EQ(alignOf<float>(), alignOf<AlignedCharArrayUnion<float> >());
221 EXPECT_EQ(alignOf<double>(), alignOf<AlignedCharArrayUnion<double> >());
222 EXPECT_EQ(alignOf<long double>(),
223 alignOf<AlignedCharArrayUnion<long double> >());
224 EXPECT_EQ(alignOf<void *>(), alignOf<AlignedCharArrayUnion<void *> >());
225 EXPECT_EQ(alignOf<int *>(), alignOf<AlignedCharArrayUnion<int *> >());
226 EXPECT_EQ(alignOf<double (*)(double)>(),
227 alignOf<AlignedCharArrayUnion<double (*)(double)> >());
228 EXPECT_EQ(alignOf<double (S6::*)()>(),
229 alignOf<AlignedCharArrayUnion<double (S6::*)()> >());
230 EXPECT_EQ(alignOf<S1>(), alignOf<AlignedCharArrayUnion<S1> >());
231 EXPECT_EQ(alignOf<S2>(), alignOf<AlignedCharArrayUnion<S2> >());
232 EXPECT_EQ(alignOf<S3>(), alignOf<AlignedCharArrayUnion<S3> >());
233 EXPECT_EQ(alignOf<S4>(), alignOf<AlignedCharArrayUnion<S4> >());
234 EXPECT_EQ(alignOf<S5>(), alignOf<AlignedCharArrayUnion<S5> >());
235 EXPECT_EQ(alignOf<S6>(), alignOf<AlignedCharArrayUnion<S6> >());
236 EXPECT_EQ(alignOf<D1>(), alignOf<AlignedCharArrayUnion<D1> >());
237 EXPECT_EQ(alignOf<D2>(), alignOf<AlignedCharArrayUnion<D2> >());
238 EXPECT_EQ(alignOf<D3>(), alignOf<AlignedCharArrayUnion<D3> >());
239 EXPECT_EQ(alignOf<D4>(), alignOf<AlignedCharArrayUnion<D4> >());
240 EXPECT_EQ(alignOf<D5>(), alignOf<AlignedCharArrayUnion<D5> >());
241 EXPECT_EQ(alignOf<D6>(), alignOf<AlignedCharArrayUnion<D6> >());
242 EXPECT_EQ(alignOf<D7>(), alignOf<AlignedCharArrayUnion<D7> >());
243 EXPECT_EQ(alignOf<D8>(), alignOf<AlignedCharArrayUnion<D8> >());
244 EXPECT_EQ(alignOf<D9>(), alignOf<AlignedCharArrayUnion<D9> >());
245 EXPECT_EQ(alignOf<V1>(), alignOf<AlignedCharArrayUnion<V1> >());
246 EXPECT_EQ(alignOf<V2>(), alignOf<AlignedCharArrayUnion<V2> >());
247 EXPECT_EQ(alignOf<V3>(), alignOf<AlignedCharArrayUnion<V3> >());
248 EXPECT_EQ(alignOf<V4>(), alignOf<AlignedCharArrayUnion<V4> >());
249 EXPECT_EQ(alignOf<V5>(), alignOf<AlignedCharArrayUnion<V5> >());
250 EXPECT_EQ(alignOf<V6>(), alignOf<AlignedCharArrayUnion<V6> >());
251 EXPECT_EQ(alignOf<V7>(), alignOf<AlignedCharArrayUnion<V7> >());
254 // appears to be benign: alignOf<V8>() produces a preposterous value: 12
256 EXPECT_EQ(alignOf<V8>(), alignOf<AlignedCharArrayUnion<V8> >());
324 EXPECT_EQ(1u, (alignOf<AlignedCharArray<1, 1> >()));
325 EXPECT_EQ(2u, (alignOf<AlignedCharArray<2, 1> >()));
326 EXPECT_EQ(4u, (alignOf<AlignedCharArray<4, 1> >()));
327 EXPECT_EQ(8u, (alignOf<AlignedCharArray<8, 1> >()));
328 EXPECT_EQ(16u, (alignOf<AlignedCharArray<16, 1> >()));