Use correct form of delete in libstdc++.exp

* testsuite/lib/libstdc++.exp (check_v3_target_namedlocale): Use
	delete[] instead of delete.

From-SVN: r238632
This commit is contained in:
Jonathan Wakely 2016-07-22 09:33:26 +01:00 committed by Jonathan Wakely
parent 6781e2af70
commit 960637ac1a
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2016-07-22 Jonathan Wakely <jwakely@redhat.com>
* testsuite/lib/libstdc++.exp (check_v3_target_namedlocale): Use
delete[] instead of delete.
2016-07-21 Jonathan Wakely <jwakely@redhat.com> 2016-07-21 Jonathan Wakely <jwakely@redhat.com>
* include/experimental/propagate_const (propagate_const::__t): Rename * include/experimental/propagate_const (propagate_const::__t): Rename

View File

@ -936,13 +936,13 @@ proc check_v3_target_namedlocale { args } {
puts $f " try" puts $f " try"
puts $f " {" puts $f " {"
puts $f " locale((const char*)namedloc);" puts $f " locale((const char*)namedloc);"
puts $f " delete namedloc;" puts $f " delete\[\] namedloc;"
puts $f " return 0;" puts $f " return 0;"
puts $f " }" puts $f " }"
puts $f " catch(...)" puts $f " catch(...)"
puts $f " {" puts $f " {"
puts $f " printf(\"locale '%s' not supported\\n\", namedloc);" puts $f " printf(\"locale '%s' not supported\\n\", namedloc);"
puts $f " delete namedloc;" puts $f " delete\[\] namedloc;"
puts $f " return 1;" puts $f " return 1;"
puts $f " }" puts $f " }"
puts $f "}" puts $f "}"