12 lines · cpp
1// RUN: %clang_min_runtime -fsanitize=null %s -o %t && %run %t 2>&1 | FileCheck %s --check-prefixes=CHECK2 3void f(int &n) {}4 5int *t;6 7int main() {8 // CHECK: ubsan: type-mismatch by 0x{{[[:xdigit:]]+}}9 // CHECK-NOT: type-mismatch10 f(*t);11}12