]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gnu.ver (_ZNSt11regex_errorC*): Export regex_error constructors.
authorJonathan Wakely <jwakely.gcc@gmail.com>
Tue, 19 Nov 2013 23:22:26 +0000 (23:22 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 19 Nov 2013 23:22:26 +0000 (23:22 +0000)
* config/abi/pre/gnu.ver (_ZNSt11regex_errorC*): Export regex_error
constructors.
* testsuite/20_util/addressof/1.cc: Remove { dg-do compile }.
* testsuite/20_util/allocator_traits/members/destroy.cc: Likewise.
* testsuite/20_util/allocator_traits/members/select.cc: Likewise. Fix
failure.
* testsuite/28_regex/basic_regex/ctors/extended/cstring.cc: Likewise.
* testsuite/28_regex/init-list.cc: Likewise.
* testsuite/28_regex/regex_error/regex_error.cc: Likewise.
* testsuite/28_regex/sub_match/length.cc: Likewise. Add main.
* testsuite/28_regex/sub_match/cast_char.cc: Likewise. Fix test.
* testsuite/28_regex/sub_match/cast_wchar_t.cc: Likewise.
* testsuite/tr1/7_regular_expressions/regex/cons/char/
c_string_extended.cc: Delete.

From-SVN: r205063

12 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/config/abi/pre/gnu.ver
libstdc++-v3/testsuite/20_util/addressof/1.cc
libstdc++-v3/testsuite/20_util/allocator_traits/members/destroy.cc
libstdc++-v3/testsuite/20_util/allocator_traits/members/select.cc
libstdc++-v3/testsuite/28_regex/basic_regex/ctors/extended/cstring.cc
libstdc++-v3/testsuite/28_regex/init-list.cc
libstdc++-v3/testsuite/28_regex/regex_error/regex_error.cc
libstdc++-v3/testsuite/28_regex/sub_match/cast_char.cc
libstdc++-v3/testsuite/28_regex/sub_match/cast_wchar_t.cc
libstdc++-v3/testsuite/28_regex/sub_match/length.cc
libstdc++-v3/testsuite/tr1/7_regular_expressions/regex/cons/char/c_string_extended.cc [deleted file]

index 27629f9c59d2528e1b4c2751dfb8be35c2ddac08..891e5c56511762f7bf28904d3fe3d17f03c25a07 100644 (file)
        * testsuite/23_containers/vector/allocator/swap.cc: Add elements
        before swapping.
 
+       * config/abi/pre/gnu.ver (_ZNSt11regex_errorC*): Export regex_error
+       constructors.
+       * testsuite/20_util/addressof/1.cc: Remove { dg-do compile }.
+       * testsuite/20_util/allocator_traits/members/destroy.cc: Likewise.
+       * testsuite/20_util/allocator_traits/members/select.cc: Likewise. Fix
+       failure.
+       * testsuite/28_regex/basic_regex/ctors/extended/cstring.cc: Likewise.
+       * testsuite/28_regex/init-list.cc: Likewise.
+       * testsuite/28_regex/regex_error/regex_error.cc: Likewise.
+       * testsuite/28_regex/sub_match/length.cc: Likewise. Add main.
+       * testsuite/28_regex/sub_match/cast_char.cc: Likewise. Fix test.
+       * testsuite/28_regex/sub_match/cast_wchar_t.cc: Likewise.
+       * testsuite/tr1/7_regular_expressions/regex/cons/char/
+       c_string_extended.cc: Delete.
+
 2013-11-19  Paolo Carlini  <paolo.carlini@oracle.com>
 
        * include/experimental/string_view (_S_max_size): Remove.
index d3c399f6bf2e9465e52cfa15ac0c9dcdd7e20e85..323579399e650a669ce2a7719495f5bf0e9e85d1 100644 (file)
@@ -1368,6 +1368,9 @@ GLIBCXX_3.4.20 {
     # std::__throw_out_of_range_fmt(char const*, ...)
     _ZSt24__throw_out_of_range_fmtPKcz;
 
+    # std::regex_error::regex_error(std::regex_constants::error_type)
+    _ZNSt11regex_errorC[01]ENSt15regex_constants10error_typeE;
+
 } GLIBCXX_3.4.19;
 
 # Symbols in the support library (libsupc++) have their own tag.
index e874258b501c9a7fdb60e293856c170c78115bc9..2b32855b72ab0dd84fd8762c83fbf6ea0f290294 100644 (file)
@@ -1,5 +1,4 @@
 // { dg-options "-std=gnu++0x" }
-// { dg-do compile }
 
 // 2010-05-20  Paolo Carlini  <paolo.carlini@oracle.com>
 
index a8e9d0ad44ac83cff75dacffe45f385d383b7e9a..56d598a21d1baed5c2b18d6f5ee0d82119e5a2e6 100644 (file)
@@ -1,5 +1,4 @@
 // { dg-options "-std=gnu++0x" }
-// { dg-do compile }
 
 // Copyright (C) 2011-2013 Free Software Foundation, Inc.
 //
index 2ef2e347cc5135f3074e1ba3b60ecebe6af1bd46..2671f18257d89f8052bbff754c5735d56bd5cd18 100644 (file)
@@ -1,5 +1,4 @@
 // { dg-options "-std=gnu++0x" }
-// { dg-do compile }
 
 // Copyright (C) 2011-2013 Free Software Foundation, Inc.
 //
@@ -54,7 +53,7 @@ void test01()
 
 void test02()
 {
-  typedef std::allocator_traits<alloc1<X>> traits_type;
+  typedef std::allocator_traits<alloc2<X>> traits_type;
   traits_type::allocator_type a{1};
   const traits_type::allocator_type& a2
     = traits_type::select_on_container_copy_construction(a);
index fa2e009b2d2c0a1e3de6956baf4659c5e9c4566a..03c20a4f6dda7accf385a14996660edda74d8ad8 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-do compile }
 // { dg-options "-std=c++0x" }
 
 // 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
@@ -33,7 +32,7 @@ test01()
   std::regex re("(wee|week)(knights|night)", std::regex::extended);
   
   VERIFY( re.flags() == std::regex::extended );
-  VERIFY( re.mark_count() == 0 );
+  VERIFY( re.mark_count() == 2 );
 }
 
 int main()
index ee71bb99be34575c9c093c231945cd51b3321f02..390e715cc34cc4615667fa36083e5486d00b9bd9 100644 (file)
@@ -1,5 +1,4 @@
 // { dg-options "-std=gnu++0x" }
-// { dg-do compile }
 
 // Copyright (C) 2008-2013 Free Software Foundation, Inc.
 //
index 9cb08f9cc81c99c2be2bc8ab34c97af49713afe0..253797329cff54924796f9f4b2bc4e295679f01b 100644 (file)
@@ -1,5 +1,4 @@
 // { dg-options "-std=c++0x" }
-// { dg-do compile }
 //
 // 2009-06-17  Stephen M. Webb  <stephen.webb@xandros.com>
 //
index ac2f305ccd4fb08d0815f8d7ba3963467d06717c..300757e9a2749b517adf5171722a61612ecb2090 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-do compile }
 // { dg-options "-std=c++0x" }
 
 //
@@ -27,9 +26,7 @@
 #include <string>
 #include <testsuite_hooks.h>
 
-
-void
-test01()
+int main()
 {
   bool test __attribute__((unused)) = true;
 
@@ -39,8 +36,8 @@ test01()
   value_type test_data[] = "cabbage";
 
        sub_match_type sm;
-       sm.first = test_data + 0;
-       sm.second  = test_data + sizeof(test_data)/sizeof(value_type);
+       sm.first = std::begin(test_data);
+       sm.second  = std::end(test_data) - 1;
        sm.matched = true;
 
        string_type sm_string = sm;
index b4cbe1abdfeb971290f80a3862b10808e96a19bb..2a5cd3fa0488d41e98fd5a1e07e433c0c7c621da 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-do compile }
 // { dg-options "-std=c++0x" }
 
 //
@@ -27,9 +26,7 @@
 #include <string>
 #include <testsuite_hooks.h>
 
-
-void
-test01()
+int main()
 {
   bool test __attribute__((unused)) = true;
 
@@ -39,8 +36,8 @@ test01()
   value_type test_data[] = L"cabbage";
 
        sub_match_type sm;
-       sm.first = test_data + 0;
-       sm.second  = test_data + sizeof(test_data)/sizeof(value_type);
+       sm.first = std::begin(test_data);
+       sm.second  = std::end(test_data) - 1;
        sm.matched = true;
 
        string_type sm_string = sm;
index e4acf711f96d18376f87f7b88d88d165623dbac7..7f073e4242b2f2adb736033580be6fb8686cdebc 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-do compile }
 // { dg-options "-std=c++0x" }
 
 //
@@ -47,3 +46,8 @@ test01()
        VERIFY( sm1.length() == test_len );
        VERIFY( sm2.length() == 0 );
 }
+
+int main()
+{
+  test01();
+}
diff --git a/libstdc++-v3/testsuite/tr1/7_regular_expressions/regex/cons/char/c_string_extended.cc b/libstdc++-v3/testsuite/tr1/7_regular_expressions/regex/cons/char/c_string_extended.cc
deleted file mode 100644 (file)
index 24fa717..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-// { dg-do compile }
-
-// 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
-//
-// Copyright (C) 2007-2013 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library.  This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 3, or (at your option)
-// any later version.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING3.  If not see
-// <http://www.gnu.org/licenses/>.
-
-// 7.8.2 basic_regex constructors
-
-#include <tr1/regex>
-#include <testsuite_hooks.h>
-
-void
-test01() 
-{ 
-  bool test __attribute__((unused)) = true;
-
-  std::tr1::regex re("(wee|week)(knights|night)", std::tr1::regex::extended);
-  
-  VERIFY( re.flags() == std::tr1::regex::extended );
-  VERIFY( re.mark_count() == 0 );
-}
-
-int main()
-{
-  test01();
-  return 0;
-}