[clang] [PAC] Add support for __ptrauth type qualifier (PR #100830)
Daniil Kovalev via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 4 22:57:36 PDT 2024
================
@@ -0,0 +1,84 @@
+// RUN: %clang_cc1 -triple arm64-apple-ios -fsyntax-only -verify -fptrauth-intrinsics %s
+
+#include <ptrauth.h>
+
+#if __has_feature(ptrauth_qualifier)
+#warning __ptrauth qualifier enabled!
+// expected-warning at -1 {{__ptrauth qualifier enabled!}}
+#endif
+
+#if __aarch64__
----------------
kovdan01 wrote:
Nit: I'm OK with such preprocessor if statement, but it looks a bit over-engineering. For non-AArch64, it looks like that many tests would require such intervention, not only this one. So, probably just providing defines would also be fine.
Feel free to ignore.
https://github.com/llvm/llvm-project/pull/100830
More information about the cfe-commits
mailing list