diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2024-07-01 02:22:45 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2024-07-01 02:22:45 -0700 |
commit | 25396021367381247ebb8b08bdfc571e3ea4347f (patch) | |
tree | 30b9c9171c287b6c1c58b632a8a6c1853922c47f /ld | |
parent | 7fafb5745728d683b6a93878af0729f413095deb (diff) | |
download | gdb-25396021367381247ebb8b08bdfc571e3ea4347f.zip gdb-25396021367381247ebb8b08bdfc571e3ea4347f.tar.gz gdb-25396021367381247ebb8b08bdfc571e3ea4347f.tar.bz2 |
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>
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ld-elf/dl5.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |