[clang] [compiler-rt] [UBSan] Add check that detects division by zero for fixed-point types (PR #165181)

via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 2 21:46:00 PDT 2026


================
@@ -0,0 +1,10 @@
+// RUN: %clangxx -DOP="0.0R / 0"                 -O3 -ffixed-point -fsanitize=fixed-point-divide-by-zero %s -o %t1 && %run %t1 2>&1 | FileCheck %s
----------------
PiJoules wrote:

You need `not %run`

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


More information about the llvm-commits mailing list