* [binutils-gdb] ld: Move foo before delete in dl5.cc
@ 2024-07-01 9:24 H.J. Lu
0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2024-07-01 9:24 UTC (permalink / raw)
To: binutils-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=25396021367381247ebb8b08bdfc571e3ea4347f
commit 25396021367381247ebb8b08bdfc571e3ea4347f
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Jul 1 02:22:45 2024 -0700
ld: Move foo before delete in dl5.cc
* testsuite/ld-elf/dl5.cc (main): Move foo before delete.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Diff:
---
ld/testsuite/ld-elf/dl5.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ld/testsuite/ld-elf/dl5.cc b/ld/testsuite/ld-elf/dl5.cc
index 77dbb62f3d5..1cd33c06159 100644
--- a/ld/testsuite/ld-elf/dl5.cc
+++ b/ld/testsuite/ld-elf/dl5.cc
@@ -35,8 +35,8 @@ int
main (void)
{
A *bb = new A[10];
- delete [] bb;
foo (bb);
+ delete [] bb;
bb = new (std::nothrow) A [10];
foo (bb);
delete [] bb;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-07-01 9:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-01 9:24 [binutils-gdb] ld: Move foo before delete in dl5.cc H.J. Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).