summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/interception
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/interception')
-rw-r--r--compiler-rt/lib/interception/tests/interception_linux_test.cc2
1 files changed, 2 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 bcd2afbeb04..5a1ca6ecbf5 100644
--- a/compiler-rt/lib/interception/tests/interception_linux_test.cc
+++ b/compiler-rt/lib/interception/tests/interception_linux_test.cc
@@ -50,6 +50,8 @@ TEST(Interception, GetFuncAddr) {
}
TEST(Interception, Basic) {
+ INTERCEPT_FUNCTION(isdigit);
+
// After interception, the counter should be incremented.
InterceptorFunctionCalled = 0;
EXPECT_NE(0, isdigit('1'));
OpenPOWER on IntegriCloud