[compiler-rt] [sanitizer] Support "alloc_dealloc_mismatch" suppressions (PR #124197)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 27 07:17:01 PST 2025
================
@@ -0,0 +1,33 @@
+// Check that without suppressions, we catch the issue.
+// RUN: %clangxx_asan -O0 %s -o %t
+// RUN: not %run %t 2>&1 | FileCheck --check-prefix=CHECK-CRASH %s
+
+// RUN: echo "alloc_dealloc_mismatch:function" > %t.supp
+// RUN: %clangxx_asan -O0 %s -o %t && %env_asan_opts=suppressions='"%t.supp"' %run %t 2>&1 | FileCheck --check-prefix=CHECK-IGNORE %s
+// RUN: %clangxx_asan -O3 %s -o %t && %env_asan_opts=suppressions='"%t.supp"' %run %t 2>&1 | FileCheck --check-prefix=CHECK-IGNORE %s
+
+// XFAIL: android
----------------
andrewjcg wrote:
Ahh, I did remove it in the most recent update -- not sure if this was the right thing to do.
https://github.com/llvm/llvm-project/pull/124197
More information about the llvm-commits
mailing list