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 ce7490d..3698ded 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 0f7f6d0..7bf91f3 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 "}"