Use correct form of delete in libstdc++.exp
authorJonathan Wakely <jwakely@redhat.com>
Fri, 22 Jul 2016 08:33:26 +0000 (09:33 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 22 Jul 2016 08:33:26 +0000 (09:33 +0100)
* testsuite/lib/libstdc++.exp (check_v3_target_namedlocale): Use
delete[] instead of delete.

From-SVN: r238632

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/lib/libstdc++.exp

index ce7490dd0f50643047fb085f3dffbc5cac5121be..3698ded53074a9bf340c99f7cc2ef490ccec3344 100644 (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>
 
        * include/experimental/propagate_const (propagate_const::__t): Rename
index 0f7f6d0f29b0ddb4cf966de676fa66c0ed4a2977..7bf91f3efeca5cf5837bb0d33832d2c6ba475a6a 100644 (file)
@@ -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 "}"