diff options
Diffstat (limited to 'clang/test/Analysis/diagnostics/dtors.cpp')
-rw-r--r-- | clang/test/Analysis/diagnostics/dtors.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/clang/test/Analysis/diagnostics/dtors.cpp b/clang/test/Analysis/diagnostics/dtors.cpp index b3fe7ec803a..18bedc61f98 100644 --- a/clang/test/Analysis/diagnostics/dtors.cpp +++ b/clang/test/Analysis/diagnostics/dtors.cpp @@ -16,10 +16,11 @@ struct smart_ptr { S *s; smart_ptr(S *); S *get() { - return (x || 0) ? nullptr : s; // expected-note{{Left side of '||' is false}} - // expected-note@-1{{'?' condition is false}} - // expected-warning@-2{{Use of memory after it is freed}} - // expected-note@-3{{Use of memory after it is freed}} + return (x || 0) ? nullptr : s; // expected-note{{Field 'x' is 0}} + // expected-note@-1{{Left side of '||' is false}} + // expected-note@-2{{'?' condition is false}} + // expected-warning@-3{{Use of memory after it is freed}} + // expected-note@-4{{Use of memory after it is freed}} } }; |