================ @@ -0,0 +1,68 @@ +// RUN: %clang_cc1 -triple arm64e-apple-ios -fptrauth-calls -fptrauth-intrinsics -fsyntax-only -verify %s +// RUN: %clang_cc1 -triple arm64e-apple-ios -DNO_PTRAUTH -fsyntax-only -verify %s + +#if defined(NO_PTRAUTH) + +#define FN_PTR_AUTH(address_diversity, constant_discriminator) +// expected-no-diagnostics + +#else // !defined(NO_PTRAUTH) + +#if !__has_extension(ptrauth_qualifier) +#error __ptrauth qualifier not enabled +#endif + +#include <ptrauth.h> ---------------- ojhunt wrote:
Oh hmm, I wonder if the test dir version of ptrauth.h should be removed now. Please ignore this request :D https://github.com/llvm/llvm-project/pull/157779 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits