================ @@ -0,0 +1,11 @@ +// RUN: %clang_min_runtime -fsanitize=null %s -o %t && %run %t 2>&1 | FileCheck %s --check-prefixes=CHECK + +void f(int &n) {} + +int *t; + +int main() { + // CHECK: ubsan: type-mismatch by 0x{{[[:xdigit:]]+}} address 0x{{[[:xdigit:]]+$}} + // CHECK-NOT: type-mismatch + f(*t); +} ---------------- vitalybuka wrote:
\n at the end https://github.com/llvm/llvm-project/pull/152192 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits