mirror of
https://github.com/Stichting-MINIX-Research-Foundation/netbsd.git
synced 2025-08-14 00:24:03 -04:00
5 lines
134 B
C++
5 lines
134 B
C++
// RUN: clang-check -analyze "%s" -- -c 2>&1 | FileCheck %s
|
|
|
|
// CHECK: Dereference of null pointer
|
|
int a(int *x) { if(x){} *x = 47; }
|