brintos

brintos / llvm-project-archived public Read only

0
0
Text · 245 B · b3d9db2 Raw
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