Home | History | Annotate | Download | only in tests

Lines Matching refs:weak_func

1091   int (*weak_func)();
1092 weak_func = reinterpret_cast<int (*)()>(dlsym(handle, "weak_func"));
1093 ASSERT_TRUE(weak_func != nullptr) << "dlerror: " << dlerror();
1094 EXPECT_EQ(42, weak_func());
1101 int (*weak_func)();
1102 weak_func = reinterpret_cast<int (*)()>(dlsym(handle, "use_weak_undefined_func"));
1103 ASSERT_TRUE(weak_func != nullptr) << dlerror();
1104 EXPECT_EQ(6551, weak_func());