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:
parent
6781e2af70
commit
960637ac1a
@ -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
|
||||||
|
@ -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 "}"
|
||||||
|
Loading…
Reference in New Issue
Block a user