forked from OSchip/llvm-project
9 lines
190 B
C++
9 lines
190 B
C++
|
// RUN: clang-tidy %s -checks='clang-analyzer-cplusplus' -- | FileCheck %s
|
||
|
|
||
|
void f() {
|
||
|
int *p = new int(42);
|
||
|
delete p;
|
||
|
delete p;
|
||
|
// CHECK: warning: Attempt to free released memory
|
||
|
}
|