20 #include <type_traits> 22 using folly::ColdClass;
24 template <
class TestClass>
30 #if !defined(__GLIBCXX__) || __GNUC__ >= 5 43 TEST(ColdClassTest, publicInheritance) {
44 struct TestPublic : ColdClass {};
45 validateInheritedClass<TestPublic>();
48 TEST(ColdClassTest, protectedInheritance) {
50 class TestProtected :
protected ColdClass {};
51 validateInheritedClass<TestProtected>();
54 TEST(ColdClassTest, privateInheritance) {
56 class TestPrivate : ColdClass {};
57 validateInheritedClass<TestPrivate>();
TEST(ColdClassTest, publicInheritance)
static const char *const value
#define EXPECT_TRUE(condition)
static void validateInheritedClass()