[compiler-rt] [llvm] [compiler-rt][UBSan] Add __ubsan_default_suppressions() hook (PR #194862)

Kleis Auke Wolthuizen via llvm-commits llvm-commits at lists.llvm.org
Sat May 2 04:46:10 PDT 2026


================
@@ -0,0 +1,10 @@
+// Test that we use the suppressions from __ubsan_default_suppressions.
+// RUN: %clangxx -fsanitize=undefined %s -o %t && not %run %t 2>&1 | FileCheck %s
+
+// Temporarily unsupporting on TySan until suppressions are implemented
+// UNSUPPORTED: ubsan-tysan
+
----------------
kleisauke wrote:

Commit b982112a8d0b963cc7bfa23006934f43eb2eb6e8 revises this test to check that a valid suppression silences a report, instead of checking that an invalid suppression is rejected (this also removes the need for `UNSUPPORTED: ubsan-tysan`).

(Let me know if you'd still like a separate test to check that invalid suppressions are rejected.)

https://github.com/llvm/llvm-project/pull/194862


More information about the llvm-commits mailing list