Home
last modified time | relevance | path

Searched refs:weak_func (Results 1 – 2 of 2) sorted by relevance

/bionic/tests/libs/
Ddlsym_weak_function.cpp17 extern "C" int __attribute__((weak)) weak_func() { in weak_func() function
/bionic/tests/
Ddlfcn_test.cpp1140 int (*weak_func)(); in TEST() local
1141 weak_func = reinterpret_cast<int (*)()>(dlsym(handle, "weak_func")); in TEST()
1142 ASSERT_TRUE(weak_func != nullptr) << "dlerror: " << dlerror(); in TEST()
1143 EXPECT_EQ(42, weak_func()); in TEST()
1150 int (*weak_func)(); in TEST() local
1151 weak_func = reinterpret_cast<int (*)()>(dlsym(handle, "use_weak_undefined_func")); in TEST()
1152 ASSERT_TRUE(weak_func != nullptr) << dlerror(); in TEST()
1153 EXPECT_EQ(6551, weak_func()); in TEST()