[clang] [AllocToken] Test compatibility with -fsanitize=kcfi,memtag (PR #168600)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 18 11:29:01 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-driver
@llvm/pr-subscribers-clang
Author: Marco Elver (melver)
<details>
<summary>Changes</summary>
Test that -fsanitize=alloc-token is compatible with kcfi and memtag, as these should also be possible to combined.
NFC.
---
Full diff: https://github.com/llvm/llvm-project/pull/168600.diff
1 Files Affected:
- (modified) clang/test/Driver/fsanitize-alloc-token.c (+1)
``````````diff
diff --git a/clang/test/Driver/fsanitize-alloc-token.c b/clang/test/Driver/fsanitize-alloc-token.c
index 6d8bda16dfb96..0ffe9abad8053 100644
--- a/clang/test/Driver/fsanitize-alloc-token.c
+++ b/clang/test/Driver/fsanitize-alloc-token.c
@@ -5,6 +5,7 @@
// CHECK-NO-TOKEN-ALLOC-NOT: "-fsanitize=alloc-token"
// RUN: %clang --target=x86_64-linux-gnu -flto -fvisibility=hidden -fno-sanitize-ignorelist -fsanitize=alloc-token,undefined,cfi %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-COMPATIBLE
+// RUN: %clang --target=aarch64-linux-android -march=armv8-a+memtag -flto -fvisibility=hidden -fsanitize=alloc-token,kcfi,memtag %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-COMPATIBLE
// CHECK-COMPATIBLE: "-fsanitize={{.*}}alloc-token"
// RUN: %clang --target=x86_64-linux-gnu -fsanitize=alloc-token -fsanitize-minimal-runtime %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-MINIMAL
``````````
</details>
https://github.com/llvm/llvm-project/pull/168600
More information about the cfe-commits
mailing list