aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Yartsev <anton.yartsev@gmail.com>2013-04-12 23:18:46 +0000
committerAnton Yartsev <anton.yartsev@gmail.com>2013-04-12 23:18:46 +0000
commite0c804b214cbca72e00ecefecb19b43c9b0cdda7 (patch)
tree5924879ff05a63e5464c30cc203632ea2e82bc0b
parentec64244f5939fa81596fbeddad966cca4b4a4c51 (diff)
NewDeleteLeaks is a subchecker of NewDelete checker; it is tested in NewDelete-checker-test.cpp
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179426 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Analysis/NewDeleteLeaks-checker-test.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/Analysis/NewDeleteLeaks-checker-test.cpp b/test/Analysis/NewDeleteLeaks-checker-test.cpp
deleted file mode 100644
index 93707ec190..0000000000
--- a/test/Analysis/NewDeleteLeaks-checker-test.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-// RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.cplusplus.NewDeleteLeaks -std=c++11 -fblocks -verify %s
-#include "Inputs/system-header-simulator-cxx.h"
-
-//----- Standard non-placement operators
-void testGlobalOpNew() {
- void *p = operator new(0);
-} // expected-warning{{Potential leak of memory pointed to by 'p'}}
-
-void testGlobalOpNewArray() {
- void *p = operator new[](0);
-} // expected-warning{{Potential leak of memory pointed to by 'p'}}
-
-void testGlobalNewExpr() {
- int *p = new int;
-} // expected-warning{{Potential leak of memory pointed to by 'p'}}
-
-void testGlobalNewExprArray() {
- int *p = new int[0];
-} // expected-warning{{Potential leak of memory pointed to by 'p'}}
-
-//----- Standard nothrow placement operators
-void testGlobalNoThrowPlacementOpNewBeforeOverload() {
- void *p = operator new(0, std::nothrow);
-} // expected-warning{{Potential leak of memory pointed to by 'p'}}
-
-void testGlobalNoThrowPlacementExprNewBeforeOverload() {
- int *p = new(std::nothrow) int;
-} // expected-warning{{Potential leak of memory pointed to by 'p'}}