clang-check-analyzer.cpp 134 B

1234
  1. // RUN: clang-check -analyze "%s" -- -c 2>&1 | FileCheck %s
  2. // CHECK: Dereference of null pointer
  3. int a(int *x) { if(x){} *x = 47; }