xref: /aosp_15_r20/external/clang/test/Tooling/clang-check-analyzer.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: clang-check -analyze "%s" -- -c 2>&1 | FileCheck %s
2 
3 // CHECK: Dereference of null pointer
a(int * x)4 void a(int *x) { if(x){} *x = 47; }
5