Lines Matching refs:Class2
52 class Class2 final : protected TrailingObjects<Class2, double, short> { class
65 Class2(bool HasShort, bool HasDouble) in Class2() function in __anon88ed5b470111::Class2
69 static Class2 *create(short S = 0, double D = 0.0) { in create()
75 Class2 *C = new (Mem) Class2(HasShort, HasDouble); in create()
120 Class2 *C1 = Class2::create(4); in TEST()
121 Class2 *C2 = Class2::create(0, 4.2); in TEST()
123 EXPECT_EQ(sizeof(Class2), in TEST()
125 EXPECT_EQ(llvm::alignOf<Class2>(), llvm::alignOf<double>()); in TEST()
127 EXPECT_EQ((Class2::additionalSizeToAlloc<double, short>(1, 0)), in TEST()
129 EXPECT_EQ((Class2::additionalSizeToAlloc<double, short>(0, 1)), in TEST()
131 EXPECT_EQ((Class2::additionalSizeToAlloc<double, short>(3, 1)), in TEST()
134 EXPECT_EQ((Class2::totalSizeToAlloc<double, short>(1, 1)), in TEST()
135 sizeof(Class2) + sizeof(double) + sizeof(short)); in TEST()