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