summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/NewDelete-path-notes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Analysis/NewDelete-path-notes.cpp')
-rw-r--r--clang/test/Analysis/NewDelete-path-notes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Analysis/NewDelete-path-notes.cpp b/clang/test/Analysis/NewDelete-path-notes.cpp
index 2195b9d42a4..70fd973facf 100644
--- a/clang/test/Analysis/NewDelete-path-notes.cpp
+++ b/clang/test/Analysis/NewDelete-path-notes.cpp
@@ -6,8 +6,8 @@
void test() {
int *p = new int;
// expected-note@-1 {{Memory is allocated}}
- if (p)
- // expected-note@-1 {{Taking true branch}}
+ if (p) // expected-note {{'p' is non-null}}
+ // expected-note@-1 {{Taking true branch}}
delete p;
// expected-note@-1 {{Memory is released}}
OpenPOWER on IntegriCloud