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 "}"