From d9ddfab9be2c25e049d1d42775db600d45eee31b Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 1 Jul 2024 02:22:45 -0700 Subject: ld: Move foo before delete in dl5.cc * testsuite/ld-elf/dl5.cc (main): Move foo before delete. Signed-off-by: H.J. Lu (cherry picked from commit 25396021367381247ebb8b08bdfc571e3ea4347f) --- ld/testsuite/ld-elf/dl5.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ld') diff --git a/ld/testsuite/ld-elf/dl5.cc b/ld/testsuite/ld-elf/dl5.cc index 77dbb62..1cd33c0 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; -- cgit v1.1