llvm-for-llvmta/tools/clang/test/Analysis/diagnostics/plist-multi-file.h

4 lines
115 B
C
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
void foo(int *ptr) {
*ptr = 1; // expected-warning{{Dereference of null pointer (loaded from variable 'ptr')}}
}