summaryrefslogtreecommitdiff
path: root/clang/test/Analysis/NewDelete-path-notes.cpp
diff options
context:
space:
mode:
authorJessica Clarke <jrtc27@jrtc27.com>2025-07-30 17:10:46 +0100
committerJessica Clarke <jrtc27@jrtc27.com>2025-07-30 17:10:46 +0100
commit66393c8ec645d9121f2b3e53708b0379a113aa02 (patch)
treef2a740bc8ada2dde8506ea87bb6014a9b3722433 /clang/test/Analysis/NewDelete-path-notes.cpp
parent7e3a1d92899336f57a6af737c9641468a1dd19b3 (diff)
parent3e93964b896023b1006d3c878effb68203d4d8dd (diff)
Created using spr 1.3.5
Diffstat (limited to 'clang/test/Analysis/NewDelete-path-notes.cpp')
-rw-r--r--clang/test/Analysis/NewDelete-path-notes.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/Analysis/NewDelete-path-notes.cpp b/clang/test/Analysis/NewDelete-path-notes.cpp
index 2837fd1951e2..852632f83ff6 100644
--- a/clang/test/Analysis/NewDelete-path-notes.cpp
+++ b/clang/test/Analysis/NewDelete-path-notes.cpp
@@ -16,8 +16,8 @@ void test() {
delete p;
// expected-note@-1 {{Memory is released}}
- delete p; // expected-warning {{Attempt to free released memory}}
- // expected-note@-1 {{Attempt to free released memory}}
+ delete p; // expected-warning {{Attempt to release already released memory}}
+ // expected-note@-1 {{Attempt to release already released memory}}
}
struct Odd {
@@ -29,7 +29,7 @@ struct Odd {
void test(Odd *odd) {
odd->kill(); // expected-note{{Calling 'Odd::kill'}}
// expected-note@-1 {{Returning; memory was released}}
- delete odd; // expected-warning {{Attempt to free released memory}}
- // expected-note@-1 {{Attempt to free released memory}}
+ delete odd; // expected-warning {{Attempt to release already released memory}}
+ // expected-note@-1 {{Attempt to release already released memory}}
}