summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/interception/tests/interception_linux_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/interception/tests/interception_linux_test.cc')
-rw-r--r--compiler-rt/lib/interception/tests/interception_linux_test.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler-rt/lib/interception/tests/interception_linux_test.cc b/compiler-rt/lib/interception/tests/interception_linux_test.cc
index 3255b4152d3..8ceab0bbde7 100644
--- a/compiler-rt/lib/interception/tests/interception_linux_test.cc
+++ b/compiler-rt/lib/interception/tests/interception_linux_test.cc
@@ -44,6 +44,11 @@ TEST(Interception, GetRealFunctionAddress) {
EXPECT_EQ(0U, dummy_address);
}
+TEST(Interception, GetFuncAddr) {
+ EXPECT_NE(GetFuncAddr("malloc"), nullptr);
+ EXPECT_EQ(GetFuncAddr("does_not_exist"), nullptr);
+}
+
TEST(Interception, Basic) {
ASSERT_TRUE(INTERCEPT_FUNCTION(isdigit));
OpenPOWER on IntegriCloud