diff --git a/compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_control_flow.cpp b/compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_control_flow.cpp --- a/compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_control_flow.cpp +++ b/compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_control_flow.cpp @@ -8,6 +8,9 @@ #include #include +#if __has_feature(ptrauth_calls) + #include +#endif uintptr_t *CFS_BEG, *CFS_END; @@ -54,6 +57,10 @@ int main() { auto main_ptr = &main; auto foo_ptr = &foo; + #if __has_feature(ptrauth_calls) + main_ptr = ptrauth_strip(&main, ptrauth_key_function_pointer); + foo_ptr = ptrauth_strip(&foo, ptrauth_key_function_pointer); + #endif int x = 10; if (x > 0)