#include <unistd.h>
#include <signal.h>
#include <setjmp.h>
+#if __has_feature(ptrauth_calls) && !defined(__OPEN_SOURCE)
+#include <ptrauth.h>
+#endif
#include <darwintest.h>
T_QUIET; T_ASSERT_NOTNULL((heap = malloc(1)), NULL);
*heap = (char)0xc3; // retq
+#if __has_feature(ptrauth_calls) && !defined(__OPEN_SOURCE)
+ heap = ptrauth_sign_unauthenticated(heap, ptrauth_key_function_pointer, 0);
+#endif
((void (*)(void))heap)(); // call *%eax
T_FAIL("SIGBUS");