Searched refs:weak_func (Results 1 – 2 of 2) sorted by relevance
17 extern "C" int __attribute__((weak)) weak_func() { in weak_func() function
973 int (*weak_func)(); in TEST() local974 weak_func = reinterpret_cast<int (*)()>(dlsym(handle, "weak_func")); in TEST()975 ASSERT_TRUE(weak_func != nullptr) << "dlerror: " << dlerror(); in TEST()976 EXPECT_EQ(42, weak_func()); in TEST()983 int (*weak_func)(); in TEST() local984 weak_func = reinterpret_cast<int (*)()>(dlsym(handle, "use_weak_undefined_func")); in TEST()985 ASSERT_TRUE(weak_func != nullptr) << dlerror(); in TEST()986 EXPECT_EQ(6551, weak_func()); in TEST()