[llvm-branch-commits] [clang] [Clang] Introduce -fsanitize=alloc-token (PR #156839)
Hans Wennborg via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Oct 2 02:01:29 PDT 2025
================
@@ -0,0 +1,58 @@
+// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 6
----------------
zmodem wrote:
I would suggest hand-writing the expectations instead, to make it more clear what are actually the interesting bits being checked for.
I put some comments below, but IIUC this test should just boil down to verifying that `test_malloc` calls `__alloc_token_malloc` and `no_sanitize_malloc` calls regular `malloc`. I think that can be expressed much more clearly.
https://github.com/llvm/llvm-project/pull/156839
More information about the llvm-branch-commits
mailing list