Home | History | Annotate | Download | only in SemaCXX

Lines Matching full:static_assert

5 // 2012, which supports C++11 and static_assert.  It should pass for both 64-bit
37 static_assert(sizeof(int IncSingle::*) == kSingleDataSize, "");
38 static_assert(sizeof(int IncMultiple::*) == kMultipleDataSize, "");
39 static_assert(sizeof(int IncVirtual::*) == kVirtualDataSize, "");
40 static_assert(sizeof(void (IncSingle::*)()) == kSingleFunctionSize, "");
41 static_assert(sizeof(void (IncMultiple::*)()) == kMultipleFunctionSize, "");
42 static_assert(sizeof(void (IncVirtual::*)()) == kVirtualFunctionSize, "");
47 static_assert(sizeof(int IncUnspecified::*) == kUnspecifiedDataSize, "");
48 static_assert(sizeof(void (IncUnspecified::*)()) == kUnspecifiedFunctionSize, "");
56 static_assert(sizeof(int Single::*) == kSingleDataSize, "");
57 static_assert(sizeof(int Multiple::*) == kMultipleDataSize, "");
58 static_assert(sizeof(int Virtual::*) == kVirtualDataSize, "");
59 static_assert(sizeof(void (Single::*)()) == kSingleFunctionSize, "");
60 static_assert(sizeof(void (Multiple::*)()) == kMultipleFunctionSize, "");
61 static_assert(sizeof(void (Virtual::*)()) == kVirtualFunctionSize, "");
69 static_assert(sizeof(int X<IncSingle>::*) == kSingleDataSize, "");
70 static_assert(sizeof(int X<IncMultiple>::*) == kMultipleDataSize, "");
71 static_assert(sizeof(int X<IncVirtual>::*) == kVirtualDataSize, "");
72 static_assert(sizeof(int X<IncUnspecified>::*) == kUnspecifiedDataSize, "");
73 static_assert(sizeof(void (X<IncSingle>::*)()) == kSingleFunctionSize, "");
74 static_assert(sizeof(void (X<IncMultiple>::*)()) == kMultipleFunctionSize, "");
75 static_assert(sizeof(void (X<IncVirtual>::*)()) == kVirtualFunctionSize, "");
76 static_assert(sizeof(void (X<IncUnspecified>::*)()) == kUnspecifiedFunctionSize, "");
80 static_assert(sizeof(int Y<Single>::*) == kSingleDataSize, "");
81 static_assert(sizeof(int Y<Multiple>::*) == kMultipleDataSize, "");
82 static_assert(sizeof(int Y<Virtual>::*) == kVirtualDataSize, "");
83 static_assert(sizeof(void (Y<Single>::*)()) == kSingleFunctionSize, "");
84 static_assert(sizeof(void (Y<Multiple>::*)()) == kMultipleFunctionSize, "");
85 static_assert(sizeof(void (Y<Virtual>::*)()) == kVirtualFunctionSize, "");
89 static_assert(sizeof(int B::*) == kSingleDataSize, "");
92 static_assert(sizeof(void (B::*)()) == kMultipleFunctionSize, "");
97 static_assert(sizeof(void (CC::*)()) == kSingleFunctionSize, "");
118 static_assert(sizeof(variable_forces_sizing) == kUnspecifiedDataSize, "");
119 static_assert(sizeof(MemPtr1) == kUnspecifiedDataSize, "");
122 //static_assert(sizeof(MemPtr2) == kSingleDataSize, "");
132 static_assert(sizeof(MemPtrInBody::MemPtr) == kSingleDataSize, "");
139 static_assert(sizeof(int T::*) == kSingleDataSize, "");
140 static_assert(sizeof(void (T::*)()) == kSingleFunctionSize, "");
147 static_assert(sizeof(int T::*) == kUnspecifiedDataSize, "");
148 static_assert(sizeof(void (T::*)()) == kUnspecifiedFunctionSize, "");
157 static_assert(sizeof(void (NewUnspecified::*)()) == kUnspecifiedFunctionSize, "");