Lines Matching refs:static_assert

89 static_assert(sizeof(int IncSingle::*)        == kSingleDataSize, "");
90 static_assert(sizeof(int IncMultiple::*) == kMultipleDataSize, "");
91 static_assert(sizeof(int IncVirtual::*) == kVirtualDataSize, "");
92 static_assert(sizeof(void (IncSingle::*)()) == kSingleFunctionSize, "");
93 static_assert(sizeof(void (IncMultiple::*)()) == kMultipleFunctionSize, "");
94 static_assert(sizeof(void (IncVirtual::*)()) == kVirtualFunctionSize, "");
96 static_assert(__alignof(int IncSingle::*) == kSingleDataAlign, "");
97 static_assert(__alignof(int IncMultiple::*) == kMultipleDataAlign, "");
98 static_assert(__alignof(int IncVirtual::*) == kVirtualDataAlign, "");
99 static_assert(__alignof(void (IncSingle::*)()) == kSingleFunctionAlign, "");
100 static_assert(__alignof(void (IncMultiple::*)()) == kMultipleFunctionAlign, "");
101 static_assert(__alignof(void (IncVirtual::*)()) == kVirtualFunctionAlign, "");
106 static_assert(sizeof(int IncUnspecified::*) == kUnspecifiedDataSize, "");
107 static_assert(sizeof(void (IncUnspecified::*)()) == kUnspecifiedFunctionSize, "");
115 static_assert(sizeof(int Single::*) == kSingleDataSize, "");
116 static_assert(sizeof(int Multiple::*) == kMultipleDataSize, "");
117 static_assert(sizeof(int Virtual::*) == kVirtualDataSize, "");
118 static_assert(sizeof(void (Single::*)()) == kSingleFunctionSize, "");
119 static_assert(sizeof(void (Multiple::*)()) == kMultipleFunctionSize, "");
120 static_assert(sizeof(void (Virtual::*)()) == kVirtualFunctionSize, "");
134 static_assert(sizeof(int X<IncSingle>::*) == kSingleDataSize, "");
135 static_assert(sizeof(int X<IncMultiple>::*) == kMultipleDataSize, "");
136 static_assert(sizeof(int X<IncVirtual>::*) == kVirtualDataSize, "");
137 static_assert(sizeof(int X<IncUnspecified>::*) == kUnspecifiedDataSize, "");
138 static_assert(sizeof(void (X<IncSingle>::*)()) == kSingleFunctionSize, "");
139 static_assert(sizeof(void (X<IncMultiple>::*)()) == kMultipleFunctionSize, "");
140 static_assert(sizeof(void (X<IncVirtual>::*)()) == kVirtualFunctionSize, "");
141 static_assert(sizeof(void (X<IncUnspecified>::*)()) == kUnspecifiedFunctionSize, "");
145 static_assert(sizeof(int Y<Single>::*) == kSingleDataSize, "");
146 static_assert(sizeof(int Y<Multiple>::*) == kMultipleDataSize, "");
147 static_assert(sizeof(int Y<Virtual>::*) == kVirtualDataSize, "");
148 static_assert(sizeof(void (Y<Single>::*)()) == kSingleFunctionSize, "");
149 static_assert(sizeof(void (Y<Multiple>::*)()) == kMultipleFunctionSize, "");
150 static_assert(sizeof(void (Y<Virtual>::*)()) == kVirtualFunctionSize, "");
154 static_assert(sizeof(int B::*) == kSingleDataSize, "");
157 static_assert(sizeof(void (B::*)()) == kMultipleFunctionSize, "");
162 static_assert(sizeof(void (CC::*)()) == kSingleFunctionSize, "");
183 static_assert(sizeof(variable_forces_sizing) == kUnspecifiedDataSize, "");
184 static_assert(sizeof(MemPtr1) == kUnspecifiedDataSize, "");
185 static_assert(sizeof(MemPtr2) == kSingleDataSize, "");
195 static_assert(sizeof(MemPtrInBody::MemPtr) == kSingleDataSize, "");
202 static_assert(sizeof(int T::*) == kSingleDataSize, "");
203 static_assert(sizeof(void (T::*)()) == kSingleFunctionSize, "");
210 static_assert(sizeof(int T::*) == kUnspecifiedDataSize, "");
211 static_assert(sizeof(void (T::*)()) == kUnspecifiedFunctionSize, "");
220 static_assert(sizeof(void (NewUnspecified::*)()) == kUnspecifiedFunctionSize, "");
273 static_assert(sizeof(int TrulySingleInheritance::*) == kMultipleDataSize, "");
283 static_assert(sizeof(int SingleInheritanceAsVirtualAfterPragma::*) == 12, "");
290 static_assert(sizeof(int SingleInheritanceAsVirtualBeforePragma::*) == 12, "");