Lines Matching refs:GTEST_COMPILE_ASSERT_
1010 // The GTEST_COMPILE_ASSERT_ macro can be used to verify that a compile time
1014 // GTEST_COMPILE_ASSERT_(GTEST_ARRAY_SIZE_(names) == NUM_NAMES,
1019 // GTEST_COMPILE_ASSERT_(sizeof(foo) < 128, foo_too_large);
1026 # define GTEST_COMPILE_ASSERT_(expr, msg) static_assert(expr, #msg)
1032 # define GTEST_COMPILE_ASSERT_(expr, msg) \
1037 // Implementation details of GTEST_COMPILE_ASSERT_:
1041 // - GTEST_COMPILE_ASSERT_ works by defining an array type that has -1
1046 // #define GTEST_COMPILE_ASSERT_(expr, msg) typedef char msg[(expr) ? 1 : -1]
1054 // GTEST_COMPILE_ASSERT_(foo, msg); // not supposed to compile as foo is
1068 // GTEST_COMPILE_ASSERT_(5 > 0, some_message);