From 960637ac1aba19f17e0f705534a76cc5e0e4719b Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Fri, 22 Jul 2016 09:33:26 +0100 Subject: [PATCH] Use correct form of delete in libstdc++.exp * testsuite/lib/libstdc++.exp (check_v3_target_namedlocale): Use delete[] instead of delete. From-SVN: r238632 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/testsuite/lib/libstdc++.exp | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index ce7490dd0f5..3698ded5307 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2016-07-22 Jonathan Wakely + + * testsuite/lib/libstdc++.exp (check_v3_target_namedlocale): Use + delete[] instead of delete. + 2016-07-21 Jonathan Wakely * include/experimental/propagate_const (propagate_const::__t): Rename diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp index 0f7f6d0f29b..7bf91f3efec 100644 --- a/libstdc++-v3/testsuite/lib/libstdc++.exp +++ b/libstdc++-v3/testsuite/lib/libstdc++.exp @@ -936,13 +936,13 @@ proc check_v3_target_namedlocale { args } { puts $f " try" puts $f " {" puts $f " locale((const char*)namedloc);" - puts $f " delete namedloc;" + puts $f " delete\[\] namedloc;" puts $f " return 0;" puts $f " }" puts $f " catch(...)" puts $f " {" puts $f " printf(\"locale '%s' not supported\\n\", namedloc);" - puts $f " delete namedloc;" + puts $f " delete\[\] namedloc;" puts $f " return 1;" puts $f " }" puts $f "}" -- 2.30.2