From: Jonathan Wakely Date: Fri, 22 Jul 2016 08:33:26 +0000 (+0100) Subject: Use correct form of delete in libstdc++.exp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=960637ac1aba19f17e0f705534a76cc5e0e4719b;p=gcc.git Use correct form of delete in libstdc++.exp * testsuite/lib/libstdc++.exp (check_v3_target_namedlocale): Use delete[] instead of delete. From-SVN: r238632 --- 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 "}"