15 #include <type_traits> 20 #include "gtest/gtest.h" 23 namespace inline_variable_testing_internal {
26 TEST(InlineVariableTest, Constexpr) {
27 static_assert(inline_variable_foo.value == 5,
"");
28 static_assert(other_inline_variable_foo.value == 5,
"");
29 static_assert(inline_variable_int == 5,
"");
30 static_assert(other_inline_variable_int == 5,
"");
33 TEST(InlineVariableTest, DefaultConstructedIdentityEquality) {
39 TEST(InlineVariableTest, DefaultConstructedIdentityInequality) {
40 EXPECT_NE(&inline_variable_foo, &other_inline_variable_foo);
43 TEST(InlineVariableTest, InitializedIdentityEquality) {
49 TEST(InlineVariableTest, InitializedIdentityInequality) {
50 EXPECT_NE(&inline_variable_int, &other_inline_variable_int);
53 TEST(InlineVariableTest, FunPtrType) {
55 std::is_same<
void(*)(),
56 std::decay<decltype(inline_variable_fun_ptr)>::type>::
value,
TEST(NotificationTest, SanityTest)